Kaydet (Commit) a33b2bc8 authored tarafından Thomas Wouters's avatar Thomas Wouters

Add an example of a generator->freevar->cell->generator reference-cycle that

doesn't get cleaned up and thus leaks.
üst 96c3f7f5
# This leaks since the introduction of yield-expr and the use of generators
# as coroutines, trunk revision 39239. The cycle-GC doesn't seem to pick up
# the cycle, or decides it can't clean it up.
def leak():
def gen():
while True:
yield g
g = gen()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment