Whitespace normalization.
This commit is contained in:
parent
78a0be6ab3
commit
c187f33e2b
|
@ -6,20 +6,20 @@ from itertools import tee
|
||||||
import gc
|
import gc
|
||||||
|
|
||||||
def leak():
|
def leak():
|
||||||
def inner():
|
def inner():
|
||||||
def fib():
|
def fib():
|
||||||
def yield_identity_forever(g):
|
def yield_identity_forever(g):
|
||||||
while 1:
|
while 1:
|
||||||
yield g
|
yield g
|
||||||
def _fib():
|
def _fib():
|
||||||
for i in yield_identity_forever(head):
|
for i in yield_identity_forever(head):
|
||||||
yield i
|
yield i
|
||||||
head, tail, result = tee(_fib(), 3)
|
head, tail, result = tee(_fib(), 3)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
x = fib()
|
x = fib()
|
||||||
x.next()
|
x.next()
|
||||||
inner()
|
inner()
|
||||||
gc.collect() ; gc.collect()
|
gc.collect() ; gc.collect()
|
||||||
# this is expected to return 0
|
# this is expected to return 0
|
||||||
return gc.collect()
|
return gc.collect()
|
||||||
|
|
Loading…
Reference in New Issue