Automatic debugging of copy by reference errors?
Fredrik Lundh
fredrik at pythonware.com
Sat Dec 9 09:09:00 EST 2006
Niels L Ellegaard wrote:
> I wanted a each object to know whether or not it was being referred to
> by a living object, and I wanted to warn the user whenever he tried to
> change an object that was being refered to by a living object. As far
> as I can see the garbage collector module would allow to do som
*all* objects in Python are referred to by "living" objects; those that
don't are garbage, and are automatically destroyed sooner or later.
(maybe you've missed that namespaces are objects too?)
</F>
More information about the Python-list
mailing list