[Python-checkins] cpython: merge

raymond.hettinger python-checkins at python.org
Fri Nov 11 07:32:21 EST 2016


https://hg.python.org/cpython/rev/955164a24535
changeset: 105057:955164a24535
parent: 105054:82607e7c24c7
user: Raymond Hettinger <python at rcn.com>
date: Fri Nov 11 04:32:11 2016 -0800
summary:
 merge
files:
 Python/ceval.c | 5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Python/ceval.c b/Python/ceval.c
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2468,8 +2468,9 @@
 TARGET(STORE_DEREF) {
 PyObject *v = POP();
 PyObject *cell = freevars[oparg];
- PyCell_Set(cell, v);
- Py_DECREF(v);
+ PyObject *oldobj = PyCell_GET(cell);
+ PyCell_SET(cell, v);
+ Py_XDECREF(oldobj);
 DISPATCH();
 }
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /