Traversing the object space.

Jp Calderone exarkun at intarweb.us
Mon Sep 1 21:50:10 CEST 2003


On Mon, Sep 01, 2003 at 11:31:45AM -0700, Lothar Scholz wrote:
> 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()

  Jp

> -- 
> http://mail.python.org/mailman/listinfo/python-list

-- 
"Pascal is Pascal is Pascal is dog meat."
                -- M. Devine and P. Larson, Computer Science 340





More information about the Python-list mailing list