[Python-3000] gc, timestamping

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jan 27 02:34:27 CET 2007


Guido van Rossum wrote:
> On 1/24/07, Jim Jewett <jimjjewett at gmail.com> wrote:
> 
>> (on python-dev) Kristján V. Jónsson wrote:
>>
>>> We have been using gc.get_objects() but it has several problems:
>>> 1) ... results in a list so long that it often kills the system.
>>
>> In Py3K, should this also return an iterator, rather than a list?

> I don't know if it makes sense given the GC implementation to
> do it in this case.

I'd say it almost certainly doesn't, since the list of
objects would be changing in all sorts of ways while you
were iterating over it.

--
Greg



More information about the Python-3000 mailing list