Message142658
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. |
|
Date |
User |
Action |
Args |
2011-08-22 02:18:03 | ncoghlan | set | recipients:
+ ncoghlan, georg.brandl, benjamin.peterson, ezio.melotti, eric.araujo, r.david.murray, Julian |
2011-08-22 02:18:03 | ncoghlan | set | messageid: <1313979483.37.0.138489380622.issue12782@psf.upfronthosting.co.za> |
2011-08-22 02:18:02 | ncoghlan | link | issue12782 messages |
2011-08-22 02:18:02 | ncoghlan | create | |
|