Skip to content

Commit 82945b2

Browse files
committed
review comments
1 parent 5136459 commit 82945b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Speed up ``super().meth()`` calls.
1+
Add :opcode:`LOAD_SUPER_ATTR` to speed up ``super().meth()`` and ``super().attr`` calls.

Python/bytecodes.c

+1
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,7 @@ dummy_func(
15651565
Py_DECREF(self);
15661566
ERROR_IF(true, error);
15671567
}
1568+
// Works with CALL, pushes two values: either `meth | self` or `NULL | meth`.
15681569
if (meth_found) {
15691570
res2 = res;
15701571
res = self; // transfer ownership

0 commit comments

Comments
 (0)