beginner's refcount questions

Terry Reedy tjreedy at
Mon Oct 30 03:50:03 CET 2006

"Jens Theisen" <jth02 at> wrote in message 
news:87odru4pc2.fsf at
> 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


More information about the Python-list mailing list