[issue10306] Weakref callback exceptions should be turned into warnings.

Antoine Pitrou report at bugs.python.org
Thu Nov 4 14:02:33 CET 2010

Antoine Pitrou <pitrou at free.fr> added the comment:

The behaviour of weakrefs here mirrors what is already done for __del__ exceptions. Using warnings would mean that exceptions can get silenced implicitly (for example, if an exception happens twice at the same location) which is not very Pythonic: generally, if you want to silence an exception, you have to do it explicitly through try...except.

nosy: +pitrou

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list