[Python-Dev] PEP for allowing 'raise NewException from None'
Nick Coghlan
ncoghlan at gmail.com
Mon Jan 30 07:23:01 CET 2012
On Mon, Jan 30, 2012 at 2:51 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> raise ... from ... is not disallowed outside a try block, but this
> behavior is not guaranteed to remain.
>
> ------------------------------------------------------------------
>
> Should that last disclaimer be there? Should it be changed?
I'd leave it out - the original PEP didn't disallow it, enforcing it
would be annoying, and it's easy enough to pick up if you happen to
happen to care (it will mean __cause__ is set along with __context ==
None).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev
mailing list