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 Julian.Scheid
Recipients Julian.Scheid, barry, georg.brandl, lregebro, ncoghlan, r.david.murray
Date 2010-04-15.11:35:53
SpamBayes Score 2.5806318e-10
Marked as misclassified No
Message-id <1271331355.77.0.750799668205.issue7490@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm, wait.  Here's a variation of your suggestion that works OK-ish even as an example:

>>> try:
...    # ... code that fails ...
... except mypkg.MyException, e:
...    print(str(e))
Expected error message.

This works because it omits the exception type in the output.

It's still far from ideal, because as an example it's more complicated than it would need to be, but I guess it works as a stop-gap solution.

Still, +1 for including the patch.
History
Date User Action Args
2010-04-15 11:35:55Julian.Scheidsetrecipients: + Julian.Scheid, barry, georg.brandl, ncoghlan, lregebro, r.david.murray
2010-04-15 11:35:55Julian.Scheidsetmessageid: <1271331355.77.0.750799668205.issue7490@psf.upfronthosting.co.za>
2010-04-15 11:35:54Julian.Scheidlinkissue7490 messages
2010-04-15 11:35:53Julian.Scheidcreate