[Python-3000] Pre-peps on raise and except changes
Nick Coghlan
ncoghlan at gmail.com
Tue Jan 23 13:02:14 CET 2007
Phillip J. Eby wrote:
> The 2-expression "raise" statement translation is incorrect in the general
> case; it is possible for the second argument to be an instance of the first
> argument, in which case 'raise E, V' should become just 'raise V'. This is
> not detectable by the refactoring tool, AFAIK.
There is another issue which currently isn't entirely clear in this PEP
or in PEP 352 - what happens to except statements which raise a subtype
of Exception instead of an instance of it.
It's currently implicit that this will continue to be allowed (with
subtypes being automatically instantiated with no arguments) - I think
that behaviour should be explicitly stated as intentional in the new
Py3k PEP.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list