[Python-ideas] except expression
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Feb 18 00:12:38 CET 2014
M.-A. Lemburg wrote:
> The colon in there breaks the basic Python concept of having
> colons end headers which start a new block of statements:
>
> http://docs.python.org/reference/compound_stmts.html
That section is talking about statements. The construct
we're discussing is an expression, so it wouldn't be
bound by the same rules.
And there are at least 3 existing uses of colons in
expressions, so ending headers is not the *only* use
of colons.
--
Greg
More information about the Python-ideas
mailing list