[Python-checkins] cpython: indicate we're not running as we leave this block

benjamin.peterson python-checkins at python.org
Thu Mar 8 01:11:42 CET 2012


http://hg.python.org/cpython/rev/354c7dc03095
changeset:   75480:354c7dc03095
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Mar 07 18:11:31 2012 -0600
summary:
  indicate we're not running as we leave this block

files:
  Objects/genobject.c |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Objects/genobject.c b/Objects/genobject.c
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -356,6 +356,7 @@
                 PyErr_Clear();
                 Py_DECREF(yf);
                 gen_undelegate(gen);
+                gen->gi_running = 0;
                 goto throw_here;
             }
             ret = PyObject_CallObject(meth, args);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list