On Tue, Aug 12, 2014 at 8:12 AM, Guido van Rossum <guido at python.org> wrote: > On Tue, Aug 12, 2014 at 3:43 AM, Devin Jeanpierre <jeanpierreda at gmail.com> > wrote: >> The parentheses seem unnecessary/redundant/weird. Why not allow >> newlines in-between "with" and the terminating ":"? >> >> with open('foo') as foo, >> open('bar') as bar, >> open('baz') as baz: >> pass > > > That way lies Coffeescript. Too much guessing. There's no syntactic ambiguity, so what guessing are you talking about? What *really* requires guessing, is figuring out where in Python's syntax parentheses are allowed vs not allowed ;). For example, "from foo import (bar, baz)" is legal, but "import (bar, baz)" is not. Sometimes it feels like Python is slowly and organically evolving into a parenthesis-delimited language. -- Devin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4