This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pythonmeister
Recipients pythonmeister
Date 2007-11-08.16:31:30
SpamBayes Score 0.09526844
Marked as misclassified No
Message-id <1194539490.65.0.919114363971.issue1405@psf.upfronthosting.co.za>
In-reply-to
Content
when running this script:
aList = []
for i in xrange(5E5):
    aList += [[]]
    for j in xrange(10):
        aList[-1].append([])
del aList

It does not give back the memory

even a

import gc
gc.collect()

afterwards does not do it.

In Python 2.5 the memory is freed again correctly, at least under Windows.

The problem came up, because I was parsing a CSV file of 50 MB which
resulted in memory usage of more than 500 MB.
History
Date User Action Args
2007-11-08 16:31:30pythonmeistersetspambayes_score: 0.0952684 -> 0.09526844
recipients: + pythonmeister
2007-11-08 16:31:30pythonmeistersetspambayes_score: 0.0952684 -> 0.0952684
messageid: <1194539490.65.0.919114363971.issue1405@psf.upfronthosting.co.za>
2007-11-08 16:31:30pythonmeisterlinkissue1405 messages
2007-11-08 16:31:30pythonmeistercreate