[Python-Dev] Revert #12085 fix for __del__ attribute error message

Antoine Pitrou solipsis at pitrou.net
Mon Sep 23 10:45:00 CEST 2013


Le Mon, 23 Sep 2013 18:17:51 +1000,
Nick Coghlan <ncoghlan at gmail.com> a écrit :
> 
> Here's what I suggest changing that error to:
> 
> >>> del x
> Unraisable exception suppressed when calling <bound method C.__del__
> of <__main__.C object at 0x7f98b8b61538>>
> Traceback (most recent call last):
>   File "<stdin>", line 3, in __del__
> RuntimeError: Going away now

Why not simply "Exception automatically caught in <bound method
C.__del__> [...]" ?

Regards

Antoine.




More information about the Python-Dev mailing list