Map with an extra parameter
ml1n
emlyn at brizzle.com
Fri Sep 8 20:46:58 EDT 2006
More information about the Python-list mailing list
Fri Sep 8 20:46:58 EDT 2006
- Previous message (by thread): Map with an extra parameter
- Next message (by thread): Map with an extra parameter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
bearophileHUGS at lycos.com wrote: > ml1n wrote: > > In the interests of speed my thinking was that using map would move the > > loop out of Python and into C, is that the case when using list > > comprehension? I'd always thought it was just syntatic short hand for > > a Python loop. > > In Python the faster things are often the most simple. > You can time your code to see what's faster. > And even better you may try the simpler solution, and if the program > results too much slow with a profiling you can find the spots needing > improvements. > > Bye, > bearophile Looks like someone already did: http://mail.python.org/pipermail/python-list/2005-January/259870.html Thanks for the shove in the right direction. M.
- Previous message (by thread): Map with an extra parameter
- Next message (by thread): Map with an extra parameter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list