counting references to an instance

Thomas Heller theller at python.net
Thu Feb 5 09:20:06 EST 2004


Michael Hudson <mwh at python.net> writes:

> Thomas Heller <theller at python.net> writes:
>> 
>> In Python debug builds, there's the sys.getrefcount() function.
>
> In *all* builds, there's sys.getrefcount().  Are you thinking of
> sys.gettotalrefcount()?

Yes, probably.  Thanks for the correction.

Thomas



More information about the Python-list mailing list