Weak references and tracebacks - NEVER MIND
Martin v. Loewis
martin at v.loewis.de
Sun Apr 14 05:22:52 EDT 2002
Fernando PĂ©rez <fperez528 at yahoo.com> writes:
> > Is it ok to use weak references to hold tracebacks without generating
> > circular references? From the documentation:
>
> Never mind, you simply can't make those weak refs. Sorry (tested with other
> types. dumb me).
Even if it was possible, it would be less useful than you think: Most
likely, your weak reference would be the *only* reference to the
traceback object, which in turns would cause the traceback to die, and
your weak reference go stale immediately.
Regards,
Martin
More information about the Python-list
mailing list