Éric Araujo <mer...@netwok.org> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6210>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to