[issue6210] Exception Chaining missing method for suppressing context

Ethan Furman report at bugs.python.org
Fri Feb 3 18:29:36 CET 2012


Ethan Furman <ethan at stoneleaf.us> added the comment:

> Because Ellipsis is now the default value for __cause__,
> 'raise ... from Ellipsis' is treated the same as 'raise ...'

Not exactly true -- if ... is a new exception then they are the same; if ... is a caught exception that is being reraised, __cause__ will be (re)set to Ellipsis.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6210>
_______________________________________


More information about the Python-bugs-list mailing list