There was an error while loading. Please reload this page.
1 parent 4fa2ecf commit 4347b13Copy full SHA for 4347b13
1 file changed
Objects/codeobject.c
@@ -1731,7 +1731,8 @@ identify_unbound_names(PyThreadState *tstate, PyCodeObject *co,
1731
struct co_unbound_counts unbound = {0};
1732
Py_ssize_t len = Py_SIZE(co);
1733
for (int i = 0; i < len; i++) {
1734
-printf("%d\n", i);
+fprintf(stderr, "%d\n", i);
1735
+fflush(stderr);
1736
_Py_CODEUNIT inst = _Py_GetBaseCodeUnit(co, i);
1737
continue;
1738
if (inst.op.code == LOAD_ATTR) {
@@ -1782,9 +1783,9 @@ continue;
1782
1783
}
1784
1785
-// if (counts != NULL) {
1786
-// *counts = unbound;
1787
-// }
+ if (counts != NULL) {
+ *counts = unbound;
1788
+ }
1789
return 0;
1790
1791
0 commit comments