[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 ;-) _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com