Skip to content

Commit 4347b13

Browse files
Print the ind=ex.
1 parent 4fa2ecf commit 4347b13

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Objects/codeobject.c

+5-4
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,8 @@ identify_unbound_names(PyThreadState *tstate, PyCodeObject *co,
17311731
struct co_unbound_counts unbound = {0};
17321732
Py_ssize_t len = Py_SIZE(co);
17331733
for (int i = 0; i < len; i++) {
1734-
printf("%d\n", i);
1734+
fprintf(stderr, "%d\n", i);
1735+
fflush(stderr);
17351736
_Py_CODEUNIT inst = _Py_GetBaseCodeUnit(co, i);
17361737
continue;
17371738
if (inst.op.code == LOAD_ATTR) {
@@ -1782,9 +1783,9 @@ continue;
17821783
}
17831784
}
17841785
}
1785-
// if (counts != NULL) {
1786-
// *counts = unbound;
1787-
// }
1786+
if (counts != NULL) {
1787+
*counts = unbound;
1788+
}
17881789
return 0;
17891790
}
17901791

0 commit comments

Comments
 (0)