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 eric.araujo
Recipients aronacher, draghuram, eric.araujo, ethan.furman, ezio.melotti, mrabarnett, ncoghlan, pitrou, poke, rhettinger, steven.daprano
Date 2011-10-23.00:29:38
SpamBayes Score 9.70667e-07
Marked as misclassified No
Message-id <1319329778.84.0.289300128807.issue6210@psf.upfronthosting.co.za>
In-reply-to
Content
I like the class method idea, but not the no_context name.  Would without_context be too long?

I don’t dislike raise MyError from None, but a method will be more easy to search and will help people reading code and discovering this unknown idiom.  I think it’s also easier to implement than a syntax change.
History
Date User Action Args
2011-10-23 00:29:39eric.araujosetrecipients: + eric.araujo, rhettinger, ncoghlan, pitrou, draghuram, aronacher, ezio.melotti, mrabarnett, steven.daprano, poke, ethan.furman
2011-10-23 00:29:38eric.araujosetmessageid: <1319329778.84.0.289300128807.issue6210@psf.upfronthosting.co.za>
2011-10-23 00:29:38eric.araujolinkissue6210 messages
2011-10-23 00:29:38eric.araujocreate