diff --git a/pep-0308.txt b/pep-0308.txt index 227d32a07..797f1d55d 100644 --- a/pep-0308.txt +++ b/pep-0308.txt @@ -48,6 +48,13 @@ Proposal - If is false, is evaluated and is the result of the whole thing. + A natural extension of this syntax is to allow one or more 'elif' + parts: + + (if : elif : ... else: ) + + This will be implemented if the proposal is accepted. + Note that at most one of and is evaluated. This is called a "short-circuit expression"; it is similar to the way the second operand of 'and' / 'or' is only