beginner's refcount questions

Terry Reedy tjreedy at udel.edu
Sun Oct 29 21:50:03 EST 2006


"Jens Theisen" <jth02 at arcor.de> wrote in message 
news:87odru4pc2.fsf at arcor.de...
> python uses gc only where refcounts alone haven't yet done the
> job.

/python/The CPython implementation/

> And some other minor question: Is there a way to query the use count
> of an object? This would be useful for debugging and testing.

sys.getrefcount I believe

thr






More information about the Python-list mailing list