[Python-3000] [Python-Dev] Python 3000 Status Update (Long!)

Josiah Carlson jcarlson at uci.edu
Tue Jun 26 05:05:41 CEST 2007


"Russell E. Owen" <rowen at cesmail.net> wrote:
> In article <20070624132756.7998.JCARLSON at uci.edu>,
>  Josiah Carlson <jcarlson at uci.edu> wrote:
> 
> > ...one could make the argument that TOOTDI says that literals and
> > generators + constructors are the only reasonable options.
> > Comprehensions save perhaps 5 characters over the constructor method,
> > and may be a bit faster, but result in teh asymmetry above.  But I will
> > admit that comprehension syntax is not likely to be going anywhere, and
> > dictionary comprehensions are not likely to be added (and neither are
> > tuple comprehensions).
> 
> OK, I'll bite. Does Python really need both list comprehensions and 
> generator expressions? Perhaps list comprehensions should go away in 
> Python 3000? I'm sure it's been discussed (I'm late to this list) and a 
> google search showed a few blog entries but nothing more.

If list comprehensions went away, then it would make sense for set
comprehensions to go away too (being that list comprehensions arguably
have far more example uses in real code, and perhaps more use-cases).

 - Josiah



More information about the Python-3000 mailing list