[issue19246] GC does not really free up memory in console
STINNER Victor
report at bugs.python.org
Mon Oct 14 00:14:10 CEST 2013
STINNER Victor added the comment:
int type of Python 2 uses an internal "free list" which has an unlimited size. If once you have 1 million different integers are the same time, the memory will never be released, even if the container storing all these integers is removed, because a reference is kept in the free list.
This is a known issue of Python 2, solved "indirectly" in Python 3, because "int" type of Python 3 does not use a free list. The long type of Python 2 does not use a free list neither.
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19246>
_______________________________________
More information about the Python-bugs-list
mailing list