PEP 317: Eliminate Implicit Exception Instantiation

Ed Avis ed at membled.com
Mon Jun 9 17:16:26 EDT 2003


Steven Taschuk <staschuk at telusplanet.net> writes:

>    raise_stmt ::= "raise" [expression ["," expression]]

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.

-- 
Ed Avis <ed at membled.com>




More information about the Python-list mailing list