[Python-Dev] Documentation about Python's GC, python-dev list messages referenced in Modules/gcmodule.c not reachable anymore
Tim Peters
tim.peters at gmail.com
Wed Dec 7 01:08:12 CET 2005
[Tim Peters]
> ...
> For example, after
>
> def f():
> dummy = xrange(10000000)
>
> f()
>
> it's not just the `dummy` list object that's reclaimed when f exits,
> it's also about 10 million integer objects.
Sorry, that example should have used "range" instead of "xrange".
Using xrange, no integer objects are created ;-)
More information about the Python-Dev
mailing list