watching the number of references to an object
Courageous
jkraska at san.rr.com
Thu Feb 14 12:30:48 EST 2002
On Thu, 14 Feb 2002 15:50:04 -0000, "Paul Brian" <paul1brian at yahoo.com> wrote:
>Dear all,
>
>Does anyone know how to monitor the references pointing to an instance of an
>object?
In addition to the other answers, please note that the number of
referrers will often be 1 higher than what you expect: the function
for getting the references itself temporarily grabs a reference,
IIRC.
C//
More information about the Python-list
mailing list