Traversing the object space.
Mark Hahn
mark at hahnca.com
Mon Sep 1 17:18:43 EDT 2003
> > Ruby has a nice function that can traverse the complete object space
> > of your program.
> >
> > Is there anything like this in python ? It seems to be not in the
> > standart library but maybe i can find a short script somewhere else.
> >
> > It is a nice way for to do some memory checks to find out if a part of
> > your app is generating too much objects.
>
>
> import gc
> print gc.get_objects()
>
Does this only report objects that support the garbage collector?
More information about the Python-list
mailing list