Python C API String Memory Consumption

Hrvoje Niksic hniksic at xemacs.org
Fri Apr 10 02:23:12 EDT 2009


aahz at pythoncraft.com (Aahz) writes:

> BTW, note that if you're using Python 2.x, range(1000000) will cause
> a "leak" because ints are never freed.  Instead, use xrange().

Note that using xrange() won't help with that particular problem.



More information about the Python-list mailing list