removing list comprehensions in Python 3.0

Peter Hansen peter at engcorp.com
Sat Jul 9 10:16:17 EDT 2005


Bengt Richter wrote:
> On Fri, 08 Jul 2005 22:29:30 -0600, Steven Bethard <steven.bethard at gmail.com> wrote:
>>(1) There's no reason to get uncomfortable even if they're removed. 
>>You'd just replace [] with list().
> 
> So list(1, 2, 3) will be the same as [1, 2, 3] ??

No, the discussion is about list comprehensions.  [1,2,3] is not a list 
comprehension, as you know.

-Peter



More information about the Python-list mailing list