PEP 317: Eliminate Implicit Exception Instantiation
Aahz
aahz at pythoncraft.com
Tue Jun 10 00:57:49 EDT 2003
In article <l1brx7dk9h.fsf at budvar.future-i.net>,
Ed Avis <ed at membled.com> wrote:
>
>Why not go further and make it look like a normal function call, that
>can take zero one or two arguments?
>
> raise_stmt ::= "raise" "(" [expression ["," expression]] ")"
>
>No arguments - raise() - would re-raise the currently active
>exception, and so on.
Well, that would essentially make it no longer a statement. raise
pretty much needs to remain a statement to fit in with the try/except
control structure.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"If you don't know what your program is supposed to do, you'd better not
start writing it." --Dijkstra
More information about the Python-list
mailing list