Author ncoghlan
Recipients Julian, benjamin.peterson, eric.araujo, ezio.melotti, georg.brandl, ncoghlan, r.david.murray
Date 2011-08-22.02:18:02
SpamBayes Score 0.000534661
Marked as misclassified No
Message-id <1313979483.37.0.138489380622.issue12782@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-08-22 02:18:03ncoghlansetrecipients: + ncoghlan, georg.brandl, benjamin.peterson, ezio.melotti, eric.araujo, r.david.murray, Julian
2011-08-22 02:18:03ncoghlansetmessageid: <1313979483.37.0.138489380622.issue12782@psf.upfronthosting.co.za>
2011-08-22 02:18:02ncoghlanlinkissue12782 messages
2011-08-22 02:18:02ncoghlancreate