[Python-checkins] cpython: make gi_running a boolean

benjamin.peterson python-checkins at python.org
Thu Mar 8 01:17:13 CET 2012


http://hg.python.org/cpython/rev/c8d1df9ac987
changeset:   75481:c8d1df9ac987
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Mar 07 18:17:03 2012 -0600
summary:
  make gi_running a boolean

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


diff --git a/Objects/genobject.c b/Objects/genobject.c
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -542,7 +542,7 @@
 
 static PyMemberDef gen_memberlist[] = {
     {"gi_frame",        T_OBJECT, offsetof(PyGenObject, gi_frame),      READONLY},
-    {"gi_running",      T_INT,    offsetof(PyGenObject, gi_running),    READONLY},
+    {"gi_running",      T_BOOL,    offsetof(PyGenObject, gi_running),    READONLY},
     {"gi_code",     T_OBJECT, offsetof(PyGenObject, gi_code),  READONLY},
     {NULL}      /* Sentinel */
 };

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


More information about the Python-checkins mailing list