[Python-Dev] gc.get_referents

Barry A. Warsaw barry@zope.com
Tue, 20 Nov 2001 13:51:51 -0500


>>>>> "NS" == Neil Schemenauer <nas@python.ca> writes:

    >> Except that you'll have to support both names for backwards
    >> compatibility.

    NS> Most of the stuff in the gc module is low-level, highly
    NS> dependent on the GC implementation and may change
    NS> significantly between releases.  The only APIs that you can
    NS> really count on are gc.enable(), gc.disable(), gc.isenabled(),
    NS> and gc.collect().  People should not be using
    NS> gc.get_referents() in normal code.

Fair enough.  It's your call.  It doesn't appear to be documented, so
you have an out. :)

-Barry