diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-18 08:25:01 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-18 08:25:01 (GMT) |
commit | 36261d7446c0b16d92467144a75ad1620e7d4b97 (patch) | |
tree | fe223bc2987cfbed640b045ab0f1558a16b2bbb3 /Python/ceval.c | |
parent | bd09f15b691853968ada24dcc8a4b2dc50d8d6f2 (diff) | |
parent | 95f53c13ce54a56313bc4ce5af738b907a454125 (diff) | |
download | cpython-36261d7446c0b16d92467144a75ad1620e7d4b97.zip cpython-36261d7446c0b16d92467144a75ad1620e7d4b97.tar.gz cpython-36261d7446c0b16d92467144a75ad1620e7d4b97.tar.bz2 |
Issue #16191: Merge comment fixes from 3.5
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 2b4f7cc..7c664ad 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1565,7 +1565,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) if (PyUnicode_CheckExact(left) && PyUnicode_CheckExact(right)) { sum = unicode_concatenate(left, right, f, next_instr); - /* unicode_concatenate consumed the ref to v */ + /* unicode_concatenate consumed the ref to left */ } else { sum = PyNumber_Add(left, right); @@ -1764,7 +1764,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) PyObject *sum; if (PyUnicode_CheckExact(left) && PyUnicode_CheckExact(right)) { sum = unicode_concatenate(left, right, f, next_instr); - /* unicode_concatenate consumed the ref to v */ + /* unicode_concatenate consumed the ref to left */ } else { sum = PyNumber_InPlaceAdd(left, right); @@ -1855,7 +1855,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) PyObject *v = THIRD(); int err; STACKADJ(-3); - /* v[w] = u */ + /* container[sub] = v */ err = PyObject_SetItem(container, sub, v); Py_DECREF(v); Py_DECREF(container); @@ -1870,7 +1870,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) PyObject *container = SECOND(); int err; STACKADJ(-2); - /* del v[w] */ + /* del container[sub] */ err = PyObject_DelItem(container, sub); Py_DECREF(container); Py_DECREF(sub); @@ -2113,7 +2113,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) SET_TOP(val); DISPATCH(); } - /* x remains on stack, retval is value to be yielded */ + /* receiver remains on stack, retval is value to be yielded */ f->f_stacktop = stack_pointer; why = WHY_YIELD; /* and repeat... */ @@ -2773,7 +2773,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) STACKADJ(-2); map = stack_pointer[-oparg]; /* dict */ assert(PyDict_CheckExact(map)); - err = PyDict_SetItem(map, key, value); /* v[w] = u */ + err = PyDict_SetItem(map, key, value); /* map[key] = value */ Py_DECREF(value); Py_DECREF(key); if (err != 0) |