Thread
:
Advanced Python Tricks
View Single Post
Sep 24th, 2005, 8:39 AM
#
20
Cerulean
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power:
4
If you're going to be calling a function in each iteration in the list then map is probably faster, yes. It's the fact that list comprehensions allow you to get away with not having to call a function that makes them faster for a bunch of situations
Cerulean
View Public Profile
Visit Cerulean's homepage!
Find More Posts by Cerulean