[issue6210] Exception Chaining missing method for suppressing context
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>
More information about the Python-bugs-list