alex23 wuwei23 at
Tue Sep 1 07:03:39 CEST 2009

Piet van Oostrum <p... at> wrote:
> [myFunc(elt, 'booHoo') for elt in myList] is also a good candidate and
> in this case I think it is preferable to both the loop and the map with
> a partial or lambda in terms of clarity.

>From memory, a listcomp with a non-builtin function is also faster
than map with the same.

More information about the Python-list mailing list