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

Skip to content

Commit 36261d7

Browse files
committed
Issue #16191: Merge comment fixes from 3.5
2 parents bd09f15 + 95f53c1 commit 36261d7

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
@@ -1565,7 +1565,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
15651565
if (PyUnicode_CheckExact(left) &&
15661566
PyUnicode_CheckExact(right)) {
15671567
sum = unicode_concatenate(left, right, f, next_instr);
1568-
/* unicode_concatenate consumed the ref to v */
1568+
/* unicode_concatenate consumed the ref to left */
15691569
}
15701570
else {
15711571
sum = PyNumber_Add(left, right);
@@ -1764,7 +1764,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
17641764
PyObject *sum;
17651765
if (PyUnicode_CheckExact(left) && PyUnicode_CheckExact(right)) {
17661766
sum = unicode_concatenate(left, right, f, next_instr);
1767-
/* unicode_concatenate consumed the ref to v */
1767+
/* unicode_concatenate consumed the ref to left */
17681768
}
17691769
else {
17701770
sum = PyNumber_InPlaceAdd(left, right);
@@ -1855,7 +1855,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
18551855
PyObject *v = THIRD();
18561856
int err;
18571857
STACKADJ(-3);
1858-
/* v[w] = u */
1858+
/* container[sub] = v */
18591859
err = PyObject_SetItem(container, sub, v);
18601860
Py_DECREF(v);
18611861
Py_DECREF(container);
@@ -1870,7 +1870,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
18701870
PyObject *container = SECOND();
18711871
int err;
18721872
STACKADJ(-2);
1873-
/* del v[w] */
1873+
/* del container[sub] */
18741874
err = PyObject_DelItem(container, sub);
18751875
Py_DECREF(container);
18761876
Py_DECREF(sub);
@@ -2113,7 +2113,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
21132113
SET_TOP(val);
21142114
DISPATCH();
21152115
}
2116-
/* x remains on stack, retval is value to be yielded */
2116+
/* receiver remains on stack, retval is value to be yielded */
21172117
f->f_stacktop = stack_pointer;
21182118
why = WHY_YIELD;
21192119
/* and repeat... */
@@ -2773,7 +2773,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
27732773
STACKADJ(-2);
27742774
map = stack_pointer[-oparg]; /* dict */
27752775
assert(PyDict_CheckExact(map));
2776-
err = PyDict_SetItem(map, key, value); /* v[w] = u */
2776+
err = PyDict_SetItem(map, key, value); /* map[key] = value */
27772777
Py_DECREF(value);
27782778
Py_DECREF(key);
27792779
if (err != 0)

0 commit comments

Comments
 (0)