Steven Bethard schrieb: > I think the jury's still out on this one: > > * Alex Martelli expects list comprehensions to be removed. [1] > * Robert Kern wants list comprehensions removed. [2] > * Raymond Hettinger encourages continued use of list comprehensions [3] > * Jeremy Bowers thinks list comprehensions should stay. [4] > > I only searched a few relatively recent threads in c.l.py, so there are > probably more, but it looks to me like the final decision will have to > be made by a pronouncement from Guido.
Well, I want to offer a more radical proposal: why not free squared braces from the burden of representing lists at all? It should be sufficient to write >>> list() list() After being free one can use them for other purposes e.g. replacing the ugly @ decorator character by the lovely [ .. ] notation or other important features no one never trusted to implement waiting for the right syntax sugar. More than this round braces together with lists can be considered as a concession to the LISP programmer who was repelled from Python by the decision to eliminate functional programming features. Kay -- http://mail.python.org/mailman/listinfo/python-list