Automatic debugging of copy by reference errors?

Carl Banks pavlovevidence at gmail.com
Sun Dec 10 23:57:28 EST 2006


Russ wrote:
> If a debugger could tell you how many references exist to an object,
> that would be helpful.

import sys
sys.getrefcount(a)

But I doubt it would be very helpful.

Carl Banks




More information about the Python-list mailing list