mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Don't set gi_frame to Py_None, use NULL instead, eliminating some insane
pointer dereferences.
This commit is contained in:
parent
5f445bf3df
commit
8920bf24f8
2 changed files with 8 additions and 7 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue