ref counting, access from python

Christian Tismer tismer at appliedbiometrics.com
Thu Jun 17 12:03:55 CEST 1999


Oleg Orlov wrote:
> 
> Hello.
> How can i get objects current ref count from my python code?
> Thanks.

>>> import sys
>>> sys.getrefcount(None)
1583
>>> print "ciao - chris"
ciao - chris
>>> 

-- 
Christian Tismer             :^)   <mailto:tismer at appliedbiometrics.com>
Applied Biometrics GmbH      :     Have a break! Take a ride on Python's
Kaiserin-Augusta-Allee 101   :    *Starship* http://starship.python.net
10553 Berlin                 :     PGP key -> http://wwwkeys.pgp.net
PGP Fingerprint       E182 71C7 1A9D 66E9 9D15  D3CC D4D7 93E2 1FAE F6DF
     we're tired of banana software - shipped green, ripens at home




More information about the Python-list mailing list