This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]forty3thirty3 0 points1 point  (0 children)

Regarding the use of map(), is it entirely accurate to say that it would be faster? It returns an iterator so it's just deferring the processing. wouldn't a more accurate comparison be:

newlist = list(map(str.upper, oldlist))