Memory leak under Idle?
Christian Tismer
tismer at appliedbiometrics.com
Sat Jun 5 16:21:33 EDT 1999
Howdy,
I was testing my stackless Python which now does also
most builtins without involving the C stack, and I thought
to use Idle as a testing horse.
By chance, I discovered a very high reference count
of None, after Idle was run.
Then I tested it with standard python 1.5.2, and discovered
the same problem. (Which makes me happy about my version,
but a little concerned about TK related stuff).
Here my DOS session and the refcounts of None:
D:\python\PNSpeed>python
Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import sys
>>> sys.getrefcount(None)
164
>>> import os
>>> os.chdir("d:/python/tools/idle")
>>> execfile("idle.py")
>>> sys.getrefcount(None)
2232
>>> execfile("idle.py")
>>> sys.getrefcount(None)
2326
>>>
What's going on here?
Just cyclic references piling up?
ciao - chris
--
Christian Tismer :^) <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH : Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net
10553 Berlin : PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
we're tired of banana software - shipped green, ripens at home
More information about the Python-list
mailing list