Skip to content

Commit 3d1ad42

Browse files
Update outdated LOAD_METHOD comments in Python/ceval.c (GH-92641)
(cherry picked from commit bdf9969) Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
1 parent 6e1a214 commit 3d1ad42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/ceval.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -4537,7 +4537,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
45374537

45384538
TARGET(LOAD_METHOD) {
45394539
PREDICTED(LOAD_METHOD);
4540-
/* Designed to work in tandem with CALL_METHOD. */
4540+
/* Designed to work in tandem with PRECALL. */
45414541
PyObject *name = GETITEM(names, oparg);
45424542
PyObject *obj = TOP();
45434543
PyObject *meth = NULL;
@@ -4562,7 +4562,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
45624562
/* meth is not an unbound method (but a regular attr, or
45634563
something was returned by a descriptor protocol). Set
45644564
the second element of the stack to NULL, to signal
4565-
CALL_METHOD that it's not a method call.
4565+
PRECALL that it's not a method call.
45664566
45674567
NULL | meth | arg1 | ... | argN
45684568
*/

0 commit comments

Comments
 (0)