Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95f53c1

Browse files
committed
Issue #16191: Fix up references to renamed variables
1 parent 371731e commit 95f53c1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Python/ceval.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
15631563
if (PyUnicode_CheckExact(left) &&
15641564
PyUnicode_CheckExact(right)) {
15651565
sum = unicode_concatenate(left, right, f, next_instr);
1566-
/* unicode_concatenate consumed the ref to v */
1566+
/* unicode_concatenate consumed the ref to left */
15671567
}
15681568
else {
15691569
sum = PyNumber_Add(left, right);
@@ -1762,7 +1762,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
17621762
PyObject *sum;
17631763
if (PyUnicode_CheckExact(left) && PyUnicode_CheckExact(right)) {
17641764
sum = unicode_concatenate(left, right, f, next_instr);
1765-
/* unicode_concatenate consumed the ref to v */
1765+
/* unicode_concatenate consumed the ref to left */
17661766
}
17671767
else {
17681768
sum = PyNumber_InPlaceAdd(left, right);
@@ -1853,7 +1853,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
18531853
PyObject *v = THIRD();
18541854
int err;
18551855
STACKADJ(-3);
1856-
/* v[w] = u */
1856+
/* container[sub] = v */
18571857
err = PyObject_SetItem(container, sub, v);
18581858
Py_DECREF(v);
18591859
Py_DECREF(container);
@@ -1868,7 +1868,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
18681868
PyObject *container = SECOND();
18691869
int err;
18701870
STACKADJ(-2);
1871-
/* del v[w] */
1871+
/* del container[sub] */
18721872
err = PyObject_DelItem(container, sub);
18731873
Py_DECREF(container);
18741874
Py_DECREF(sub);
@@ -2107,7 +2107,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
21072107
SET_TOP(val);
21082108
DISPATCH();
21092109
}
2110-
/* x remains on stack, retval is value to be yielded */
2110+
/* receiver remains on stack, retval is value to be yielded */
21112111
f->f_stacktop = stack_pointer;
21122112
why = WHY_YIELD;
21132113
/* and repeat... */
@@ -2728,7 +2728,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
27282728
STACKADJ(-2);
27292729
map = stack_pointer[-oparg]; /* dict */
27302730
assert(PyDict_CheckExact(map));
2731-
err = PyDict_SetItem(map, key, value); /* v[w] = u */
2731+
err = PyDict_SetItem(map, key, value); /* map[key] = value */
27322732
Py_DECREF(value);
27332733
Py_DECREF(key);
27342734
if (err != 0)

0 commit comments

Comments
 (0)