diff options
author | Phillip J. Eby <pje@telecommunity.com> | 2006-04-12 19:07:15 +0000 |
---|---|---|
committer | Phillip J. Eby <pje@telecommunity.com> | 2006-04-12 19:07:15 +0000 |
commit | 0b1f48bf047b78e96fb12b79d12cf88a872b4d4c (patch) | |
tree | 84ae8d553e9457739af4a563285c77d9c6872724 /Include/genobject.h | |
parent | bed46dc764fb1e4a4f1a89629f70ca0334255bca (diff) | |
download | cpython-0b1f48bf047b78e96fb12b79d12cf88a872b4d4c.tar.gz |
Don't set gi_frame to Py_None, use NULL instead, eliminating some insane
pointer dereferences.
Diffstat (limited to 'Include/genobject.h')
-rw-r--r-- | Include/genobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/genobject.h b/Include/genobject.h index 1ecd7ad773..ca8443203c 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. */ |