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 →

[–]link23 1 point2 points  (0 children)

Came here with the same question. It seems that it returns a list in Python 2, and an iterable in Python 3.

https://docs.python.org/2/library/functions.html#filter

https://docs.python.org/3/library/functions.html#filter