elsa <kerensael...@hotmail.com> writes:
> map(myFunc(b='booHoo'), myList)
> 
> Why doesn't this work? is there a way to make it work?

You can use functools.partial but a listcomp might be simpler:

   list(myfunc(a, b='booHoo') for a in myList)

There is another listcomp syntax with square brackets, but I try to
avoid it because it has broken behavior (leaks the index variable) in
Python 2.x.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to