Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repe…
…tition
  • Loading branch information
iritkatriel committed Jun 14, 2022
commit 7851ccd2e4e2e3e4800ce8f847106df70a4d205b
8 changes: 8 additions & 0 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,14 @@ compiler_addop_name(struct compiler *c, int opcode, PyObject *dict,
Py_DECREF(mangled);
if (arg < 0)
return 0;
if (opcode == LOAD_ATTR) {
arg <<= 1;
}
if (opcode == LOAD_METHOD) {
opcode = LOAD_ATTR;
arg <<= 1;
arg |= 1;
}
return compiler_addop_i(c, opcode, arg, true);
}

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.