Python memory handling

Paul Melis paul at floorball-flamingos.nl
Thu May 31 15:09:15 EDT 2007


frederic.pica at gmail.com wrote:
> I will try later with python 2.5 under linux, but as far as I can see,
> it's the same problem under my windows python 2.5
> After reading this document :
> http://evanjones.ca/memoryallocator/python-memory.pdf
> 
> I think it's because list or dictionnaries are used by the parser, and
> python use an internal memory pool (not pymalloc) for them...

I tried the f.readlines() approach and with 2.5 on linux the list is freed.

Paul



More information about the Python-list mailing list