There was an error while loading. Please reload this page.
1 parent c199564 commit 88f7bebCopy full SHA for 88f7beb
2 files changed
Lib/test/test_code.py
@@ -966,9 +966,6 @@ def func_with_globals_and_builtins():
966
return callable(mod2), tuple(mods), list(mods), checks
967
968
func = func_with_globals_and_builtins
969
- dis.dis(func)
970
- for i, instr in enumerate(dis.get_instructions(func)):
971
- print(i, instr, end='')
972
with self.subTest(f'{func} code'):
973
expected = new_var_counts(
974
purelocals=4,
Objects/codeobject.c
@@ -1730,13 +1730,8 @@ identify_unbound_names(PyThreadState *tstate, PyCodeObject *co,
1730
assert(counts == NULL || counts->total == 0);
1731
struct co_unbound_counts unbound = {0};
1732
Py_ssize_t len = Py_SIZE(co);
1733
-fprintf(stderr, "\n");
1734
-fprintf(stderr, "%s\n", PyUnicode_AsUTF8(co->co_name));
1735
for (int i = 0; i < len; i++) {
1736
-fprintf(stderr, "%d\n", i);
1737
-fflush(stderr);
1738
_Py_CODEUNIT inst = _Py_GetBaseCodeUnit(co, i);
1739
-continue;
1740
if (inst.op.code == LOAD_ATTR) {
1741
int oparg = GET_OPARG(co, i, inst.op.arg);
1742
int index = LOAD_ATTR_NAME_INDEX(oparg);
0 commit comments