]> granicus.if.org Git - python/commitdiff
make gi_running a boolean
authorBenjamin Peterson <benjamin@python.org>
Thu, 8 Mar 2012 00:17:03 +0000 (18:17 -0600)
committerBenjamin Peterson <benjamin@python.org>
Thu, 8 Mar 2012 00:17:03 +0000 (18:17 -0600)
Objects/genobject.c

index b065fc7976310064fd7ddf6894f2a20e87d1d180..f25b8a5f0ec3337fbff34e3fbb6c3def8fced92d 100644 (file)
@@ -542,7 +542,7 @@ static PyGetSetDef gen_getsetlist[] = {
 
 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 */
 };