removing list comprehensions in Python 3.0

Steven Bethard steven.bethard at gmail.com
Fri Jul 8 20:18:46 EDT 2005


Kay Schluehr wrote:
> 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. 

Heh heh.

So how do I write a list literal then?  Or do we only get tuple literals 
in Python 3.0.  ;)

STeVe



More information about the Python-list mailing list