fixing map(None, [1,2,3]) ?

Remco Gerlich scarblac at pino.selwerd.nl
Tue Mar 27 10:02:17 CEST 2001


Mike Coleman <mkc at mathdogs.com> wrote in comp.lang.python:
> Shouldn't "map(None, [1,2,3])" return "[(1,), (2,), (3,)]"?
> 
> Is there any hope that this could be fixed?

No, since zip() already does that in 2.0 and higher, changing map would
break lots of code, and it's not better anyway...

-- 
Remco Gerlich



More information about the Python-list mailing list