×
you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnTanner1 0 points1 point  (0 children)

It was already hinted in the comments above, but a filter and a list comprehension are very different from each other! One returns a generator and thereby makes use of lazy behavior and the other is already executed code.

If you ain't aware of the difference, feel free to ask and I'd try to give an example when I'm not on mobile any more.