PEP 317: Eliminate Implicit Exception Instantiation

Gerrit Holl gerrit at nl.linux.org
Mon Jun 9 17:32:01 EDT 2003


Ed Avis wrote:
> 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.

Maybe raise could even be made a builtin-function instead of a statement?
I think there should be as few statements as possible.
Or would it be impossible because of Python's internals? I know
nothing about them...

yours,
Gerrit.

-- 
250. If while an ox is passing on the street (market) some one push it,
and kill it, the owner can set up no claim in the suit (against the
hirer).
        -- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list