Re: efficient Python object count

2008-11-07 Thread darrenr
> Here you > are:http://svn.python.org/projects/python/branches/release25-maint/Misc/S... Excellent, thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: efficient Python object count

2008-11-07 Thread darrenr
> Thanks for the quick reply. Could you provide a link to more > information on the debug build you refer to? A modified version of this algorithm should do the trick for my purposes, it finds the non-containers that gc ignores. I don't care how long it takes to compute, I just don't want the proc

Re: efficient Python object count

2008-11-06 Thread darrenr
On Nov 6, 7:28 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > darrenr wrote: > > Hello, > > > Does anyone know of an efficient way to get a count of the total > > number of Python objects in CPython? The best solution I've been able > > to find is len(

efficient Python object count

2008-11-06 Thread darrenr
Hello, Does anyone know of an efficient way to get a count of the total number of Python objects in CPython? The best solution I've been able to find is len(gc.get_objects()) which unfortunately has to walk a C linked list *and* creates a list containing all of the objects, when all I need is an o