[Python-Dev] Multi-line import implementation (was: 2.4a2, and @decorators) (original) (raw)

Dima Dorfman dima at trit.org
Sat Aug 14 12:31:50 CEST 2004


Guido van Rossum <guido at python.org> wrote:

Michael Chermside wrote: > Others have already mentioned that "from sys import xxx, xxx, xxx" > is the case that badly needs line wrapping. I would, however, like > to suggest that (if it's easy to do) you allow a trailing comma when > parentheses are used. [...]

+1

Certainly easy to do (in fact, changing the grammar was almost sufficient). I've uploaded a new patch to SF, with the comment saying, in part,

If we want to support that case for some reason, it's simple enough to remove the rejection test from the compiler.

Dima.



More information about the Python-Dev mailing list