Memory leaks and reference counter of an object
Fredrik Lundh
fredrik at pythonware.com
Mon Dec 27 04:36:51 EST 1999
Manfred Pisecky <pisecky at tttech.com> wrote:
> Is there a way to get the value of the reference counter of an
> arbitrary object from within Python code - of course immutable?
sys.getrefcount(object)
for details, see
http://www.python.org/doc/current/lib/module-sys.html
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list