removing list comprehensions in Python 3.0

Leif K-Brooks eurleif at ecritters.biz
Fri Jul 8 20:02:20 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()

So then what would the expression list('foo') mean? Would it be
equivalent to ['foo'] (if so, how would you convert a string or other
iterable to a list under Py3k?), or would it be equivalent to ['f', 'o',
'o'] as it is in now (and is so, what gives?)?



More information about the Python-list mailing list