"Russell E. Owen" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Josiah Carlson <[EMAIL PROTECTED]> 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 _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
