summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorPhillip J. Eby <pje@telecommunity.com>2006-04-12 19:07:15 (GMT)
committerPhillip J. Eby <pje@telecommunity.com>2006-04-12 19:07:15 (GMT)
commit8920bf24f8eeaf6e8683fd5461b2c1baad325e63 (patch)
tree5a832a7573c8ec117bb49a06bc204f59fa3bf022 /Include
parent5f445bf3dfe482d629f3da925ad699824f812f54 (diff)
downloadcpython-8920bf24f8eeaf6e8683fd5461b2c1baad325e63.zip
cpython-8920bf24f8eeaf6e8683fd5461b2c1baad325e63.tar.gz
cpython-8920bf24f8eeaf6e8683fd5461b2c1baad325e63.tar.bz2
Don't set gi_frame to Py_None, use NULL instead, eliminating some insane
pointer dereferences.
Diffstat (limited to 'Include')
-rw-r--r--Include/genobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/genobject.h b/Include/genobject.h
index 1ecd7ad..ca84432 100644
--- a/Include/genobject.h
+++ b/Include/genobject.h
@@ -13,6 +13,7 @@ typedef struct {
PyObject_HEAD
/* The gi_ prefix is intended to remind of generator-iterator. */
+ /* Note: gi_frame can be NULL if the generator is "finished" */
struct _frame *gi_frame;
/* True if generator is being executed. */