mirror of
https://github.com/python/cpython.git
synced 2025-09-25 01:43:11 +00:00
11 lines
282 B
Python
11 lines
282 B
Python
|
|
# 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()
|
|
|