[issue7317] Display full tracebacks when an error occurs asynchronously
alon horev
report at bugs.python.org
Sat Oct 15 17:09:08 CEST 2011
alon horev <alonho at gmail.com> added the comment:
Here's the next attempt (took your advice about the convention):
Exception ignored in: <bound method A.__del__ of <__main__.A object at 0x1007671d0>>
Traceback (most recent call last):
File "/tmp/bla.py", line 4, in __del__
None.someattr
AttributeError: 'NoneType' object has no attribute 'someattr'
reminder of the current format for comparison:
Exception AttributeError: "'NoneType' object has no attribute 'someattr'" in <bound method A.__del__ of <__main__.A object at 0x1007671d0>> ignored
I thought about a more elaborate explanation than "Exception ignored" but grepping this function through the code shows it can be called from various places making it too generic.
The reason I wanted to add a header/footer is for stating the message and the traceback go together (I print tracebacks to screen all the time), but it might be TMI..
----------
Added file: http://bugs.python.org/file23414/7317.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7317>
_______________________________________
More information about the Python-bugs-list
mailing list