This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alonho
Recipients alonho, amaury.forgeotdarc, oddthinking, pitrou
Date 2011-10-15.11:05:42
SpamBayes Score 0.00022094749
Marked as misclassified No
Message-id <1318676744.4.0.642268850066.issue7317@psf.upfronthosting.co.za>
In-reply-to
Content
Submitting a patch proposing this format:

-----BEGIN UNRAISABLE EXCEPTION-----
Class: AttributeError
Instance: "'NoneType' object has no attribute 'someattr'"
Function: <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
-----END UNRAISABLE EXCEPTION-----

I've wrapped the exception information with header/footer differentiating it from a user's error handling code that also prints tracebacks (is it too much?).

I've considered using the warnings module, But I dislike the suppression of already warned messages. (2 instances will raise exception in __del__ but only one message will be printed) 

This is my first patch submission so feel free giving me a hard time.
History
Date User Action Args
2011-10-15 11:05:44alonhosetrecipients: + alonho, amaury.forgeotdarc, pitrou, oddthinking
2011-10-15 11:05:44alonhosetmessageid: <1318676744.4.0.642268850066.issue7317@psf.upfronthosting.co.za>
2011-10-15 11:05:43alonholinkissue7317 messages
2011-10-15 11:05:43alonhocreate