[issue6210] Exception Chaining missing method for suppressing context
Patrick Westerhoff
report at bugs.python.org
Thu Jan 12 23:39:55 CET 2012
Patrick Westerhoff <PatrickWesterhoff at gmail.com> added the comment:
Yeah, I would really like that solution, especially as it separates from the `from X` syntax that sets the exception’s cause.
Also I would prefer a syntax solution over a class method simply because the exception context is something that is implicitely set by Python with the `raise` statement. So it would make sense to overwrite that behaviour with a syntax construct as well.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6210>
_______________________________________
More information about the Python-bugs-list
mailing list