Nick Coghlan <ncogh...@gmail.com> added the comment:

As Georg noted, only individual expressions get parentheses based continuations 
automatically. For statement level use of comma separation, it's decided on a 
case-by-cases basis as to whether we think it is a legitimate usage based on 
our style guidelines.

That's why 'from location import (name1, name2)' is allowed, but 'import 
(name1, name2)' is not: we explicitly advise against importing too many modules 
in a single import statement, but importing multiple names from a single 
location is often a useful thing to do.

However, while the multiple context expression use case is reasonable, there 
may be a grammar ambiguity problem in this case, since (unlike from-import) 
with statements allow arbitrary subexpressions.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to