list comprehensions *are* nice

Alex Martelli aleaxit at yahoo.com
Fri May 18 15:34:55 EDT 2001


"Grant Griffin" <not.this at seebelow.org> wrote in message
news:9e3n1l0lfv at drn.newsguy.com...
    ...
> That being said, I do kindda admire the way list comprehensions tend to
stetch
> across 80 characters, enabling you to use a "\" to continue them on the
next
> line <wink>.

You may no doubt use extra, redundant backslashes if you like, but since
list comprehensions start with '[', there will be implicit physical-line
joining
into one logical-line until the closing ']'...!


Alex






More information about the Python-list mailing list