[Python-ideas] About list comprehension syntax

Josiah Carlson jcarlson at uci.edu
Wed May 30 18:45:24 CEST 2007


Arnaud Delobelle <arno at marooned.org.uk> wrote:
> Why not just drop the 'x for' at the start of a 'filter  
> comprehension' (or generator expression)?  Thus (3) could be written  
> more simply as:

Explicit is better than implicit.
Special cases aren't special enough to break the rules.
There should be one-- and preferably only one --obvious way to do it.


 - Josiah




More information about the Python-ideas mailing list