[Python-ideas] for/else statements considered harmful
Carl M. Johnson
cmjohnson.mailinglist at gmail.com
Thu Jun 7 02:44:04 CEST 2012
On Jun 6, 2012, at 1:58 PM, Bruce Leban wrote:
> If a context-sensitive keyword would work I'd go for something more like
> for ...
> [ else empty: ]
> else [ no match ] :
> This would not introduce any incompatibilities.
Since None is now a keyword, you could say "else if None" but that might be confusing, since None is different than empty.
More information about the Python-ideas