Python memory usage

Fredrik Lundh fredrik at pythonware.com
Mon Nov 13 14:46:58 EST 2006


velotron wrote:

> x=range(10000000)
> x=None
> 
> The problem exists for floats too, so for a less contrived example:
> 
> x=[random.weibullvariate(7.0,2.0) for i in xrange(10000000)]
> x=None
> 
> Both leave the Python process bloated in my environment.   Is this
> problem a good candidate for the FAQ?

http://effbot.org/pyfaq/why-doesnt-python-release-the-memory-when-i-delete-a-large-object

</F>




More information about the Python-list mailing list