[Python-Dev] funny leak
Tim Peters
tim.one@comcast.net
Mon, 24 Mar 2003 11:02:14 -0500
Mon, 24 Mar 2003 11:02:14 -0500
- Previous message: [Python-Dev] funny leak
- Next message: [Python-Dev] funny leak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
OK, *this* program leaks a reference each time around; probably a missing
decref in the compiler:
source = """\
def conjoin(gs):
def gen():
gs # unbreakable cycle
gen # unless one is commented out
"""
def one():
exec source in {}
import sys, gc
lastrc = 0
while 1:
one()
gc.collect()
thisrc = sys.gettotalrefcount()
print thisrc - lastrc,
lastrc = thisrc
- Previous message: [Python-Dev] funny leak
- Next message: [Python-Dev] funny leak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]