> On a related and minor note, can we please expand the grammar to allow > from...import statements to continue to the next line after a trailing > comma? For those of us with large, complex, and componentized projects, it > would be very nice. e.g.: > > from OPAL.Modules.Financial.Reports.COGS import generate, webOptions, > normalize, row_ops, > summary > > instead of: > > from OPAL.Modules.Financial.Reports.COGS import generate, webOptions, \ > normalize, row_ops, \ > summary > > > This has been a minor nit that bothers just under the threshold of fixing it > myself. ;) I guess this could be implemented by allowing [NEWLINE] after the comma in the grammar. But I'm -0 on this change; I fear that someone accidentally adding a trailing comma (or leaving it in after some rearrangements) will be very puzzled at the syntax error that comes somewhere in the middle of the next statement: from foo import bar, bufsize = 12 ^syntax error --Guido van Rossum (home page: http://www.python.org/~guido/)
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