[Phillip]
> By the way, I notice PEP 340 has two outstanding items with my name on
> them; let me see if I can help eliminate one real quick.
>
> Tracebacks: it occurs to me that I may have unintentionally given the
> impression that I need to pass in an arbitrary traceback, when in fact I
> only
Nick Coghlan wrote:
> Option 1: mimic try, for, while semantics
>An 'else' clause on a block statement behaves like the else clause on
> for and while loops, and on try/except statements - the clause is
> executed only if the managed suite completes 'normally' (i.e. it is not
> terminated e
[Nick Coghlan]
> As yet, I don't have a particularly firm opinion on whether or not block
> statements should support an 'else:' clause. And there are obviously a great
> many other questions to be answered about how block statements might work that
> are more important than this one.
>
> Still, I
[Nick Coghlan]
> Would 'suite' work as the keyword?
>
> Calling these things 'suite' statements would match the Python grammar,
Actually that's an argument *against* -- too confusing to have two
things we call suite.
> give an
> obvious visual indicator through the use of a keyword, reduce any c
On Sun, May 01, 2005, Nick Coghlan wrote:
>
> Option 0:
>No else clause allowed. Figured I should mention this, since it is
>Guido's last reported inclination, and my total lack of use cases for the
> other options below suggests this is the best idea for an initial
> implementation.
+1
As yet, I don't have a particularly firm opinion on whether or not block
statements should support an 'else:' clause. And there are obviously a great
many other questions to be answered about how block statements might work that
are more important than this one.
Still, I've been tinkering with
Ka-Ping Yee wrote:
The programmer who writes the function used to introduce a block
can hardly be relied upon to explain the language semantics. We
don't expect the docstring of every class to repeat an explanation
of Python classes, for example. The language reference manual is
for that; it's a