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

Russell E. Owen rowen at cesmail.net
Wed Jun 27 02:23:13 CEST 2007


In article <20070625193345.79AA.JCARLSON at uci.edu>,
 Josiah Carlson <jcarlson at uci.edu> wrote:

> "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).

I would personally be happy lose set comprehensions and just use 
generator expressions for all comprehension-like tasks.

-- Russell



More information about the Python-3000 mailing list