[issue6210] Exception Chaining missing method for suppressing context

Éric Araujo report at bugs.python.org
Sun Oct 23 02:29:38 CEST 2011


Éric Araujo <merwok at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6210>
_______________________________________


More information about the Python-bugs-list mailing list