[Python-Dev] Py3k: Except clause syntax (original) (raw)
Alex Martelli aleaxit at gmail.com
Mon Mar 20 05:08:48 CET 2006
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] Py3k: Except clause syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mar 19, 2006, at 7:42 PM, Guido van Rossum wrote: ...
There seem to be other places where Python is beginning to require parens even though they aren't strictly necessary to resolve syntactic ambiguity. In the style guide only, I hope. The parens that are mandatory in a few places are necessary to resolve ambiguity.
Technically, I believe the first place where this did not apply was
list comprehensions, back in 2.2, since (for example) [x, y for y, x
in whatever] could have been syntactically disambiguated but (quite
reasonably, IMHO) [(x,y) for y,x in whatever] was mandated instead.
Alex
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] Py3k: Except clause syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]