Jan Kaliszewski zuo at
Mon Aug 31 21:22:20 CEST 2009

Another possibilities, if you really *desire* to use map()
and not list-comprehension (I'd prefer the latter), are:

# Python 2.x:
map(func, mylist, itertools.repeat('booHoo', len(mylist)))

# Python 3.x, where map() works like Py2.x's itertools.imap():
list(map(func, mylist, itertools.repeat('booHoo')))


Jan Kaliszewski (zuo) <zuo at>

More information about the Python-list mailing list