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

Sean 'Shaleh' Perry shaleh at valinux.com
Mon Mar 26 18:12:03 EST 2001


On 26-Mar-2001 Mike Coleman wrote:
> Shouldn't "map(None, [1,2,3])" return "[(1,), (2,), (3,)]"?
> 
> Is there any hope that this could be fixed?
> 

map runs the function on each element of the list it is passed and returns an
element of a new list.  Why should it magically return a list of one-tuples?




More information about the Python-list mailing list