[Python-Dev] PEP 343 rewrite complete
Eric Nieuwland
eric.nieuwland at xs4all.nl
Wed Jun 1 22:00:20 CEST 2005
Phillip J. Eby wrote:
> At 08:46 PM 6/1/2005 +0200, Eric Nieuwland wrote:
>> If I look at the translation it an augmented 'try'.
>> with EXPR as VAR:
>> BLOCK1
>> except EXCEPTION:
>> BLOCK2
>> could then be translated to
>
> -1, too confusing.
A matter of taste, I guess. IMHO 'with' secretly handling exceptions is
confusing.
>> Can the 'throw()' method be renamed 'raise()'? IMHO that makes much
>> clearer what happens.
>
> No, 'raise' is a reserved word. It would have to be 'raise_()'. -0.
My bad. Should have thought about that.
>> Same thing with 'GeneratorExit', 'StopGeneration' more closely matches
>> 'StopIteration'.
>
> StopIteration is raised the *other* way, so closely matching isn't
> really a benefit. -1.
Yep! Misread that one.
--eric
More information about the Python-Dev
mailing list