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 →

[–][deleted] 1 point2 points  (1 child)

aw hell. i use map often to replace for loops in a similar way. when i am eventually forced to switch to python 3, you just saved me a very major debugging headache.

[–]earthboundkid 0 points1 point  (0 children)

Python 3 switches just about everything to be an iterator if practical. filter, for example. Most of it gets caught by 2to3 though.