Skip to content

Commit 1f25dd9

Browse files
committed
Use simpler formulation
1 parent 2af6677 commit 1f25dd9

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

Python/bytecodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,9 +3365,10 @@ dummy_func(
33653365
_FOR_ITER_GEN_FRAME +
33663366
_PUSH_FRAME;
33673367

3368-
inst(LOAD_SPECIAL, (owner -- method_and_self[2])) {
3368+
inst(LOAD_SPECIAL, (self -- method_and_self[2])) {
3369+
method_and_self[1] = self;
33693370
method_and_self[0] = PyStackRef_NULL;
3370-
method_and_self[1] = owner;
3371+
DEAD(self);
33713372
PyObject *name = _Py_SpecialMethods[oparg].name;
33723373
int err = _PyObject_LookupSpecialMethod(name, method_and_self);
33733374
if (err < 0) {
@@ -3379,7 +3380,6 @@ dummy_func(
33793380
PyStackRef_TYPE(method_and_self[1])->tp_name);
33803381
ERROR_NO_POP();
33813382
}
3382-
INPUTS_DEAD();
33833383
}
33843384

33853385
inst(WITH_EXCEPT_START, (exit_func, exit_self, lasti, unused, val -- exit_func, exit_self, lasti, unused, val, res)) {

Python/executor_cases.c.h

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)