diff --git a/pep-0409.txt b/pep-0409.txt index 4cb734722..0451d469c 100644 --- a/pep-0409.txt +++ b/pep-0409.txt @@ -153,12 +153,17 @@ The default exception printing routine will then: In both of the latter cases the exception chain will stop being followed. -Because the default value for ``__cause__`` is now ``Ellipsis``:: +Because the default value for ``__cause__`` is now ``Ellipsis`` and ``raise +Exception from Cause`` is simply syntactic sugar for:: + + _exc = NewException() + _exc.__cause__ = Cause() + raise _exc + +``Ellipsis``, as well as ``None``, is now allowed as a cause:: raise Exception from Ellipsis -is allowed and will (re)set ``__cause__`` to ``Ellipsis``. - Patches =======