]> granicus.if.org Git - python/commit
Fix a too-aggressive assert (see SF#1257960). Previously, gen_iternext
authorPhillip J. Eby <pje@telecommunity.com>
Sat, 13 Aug 2005 03:29:00 +0000 (03:29 +0000)
committerPhillip J. Eby <pje@telecommunity.com>
Sat, 13 Aug 2005 03:29:00 +0000 (03:29 +0000)
commit00148226df1af0f6ef120492c07fb5a8013087fc
treea82b14f5304c817a71cfe4807f40482a475c58ca
parent038ca2a5516f6b445a8548f3999d1db3b6b8abb1
Fix a too-aggressive assert (see SF#1257960).  Previously, gen_iternext
was never called during interpreter shutdown GC, so the f_back!=NULL
assertion was correct.  Now that generators get close()d during GC,
the assertion was being triggered because the generator close() was being
called as the top-level frame.  However, nothing actually is broken by
this; it's just that the condition was unexpected in previous Python
versions.
Objects/genobject.c