Just wondering

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Fri May 15 08:06:58 EDT 2009


Gediminas Kregzde:
> map function is slower than
> for loop for about 5 times, when using huge amounts of data.
> It is needed to perform some operations, not to return data.

Then you are using map() for the wrong purpose. map() purpose is to
build a list of things. Use a for loop.

Bye,
bearophile



More information about the Python-list mailing list