Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python Is Eating the World. Parent comment
List comprehension:
a = [x for x in stuff if x > 1]
a = list(x for x in stuff if x > 1)
a = MyCustomCollection(x for x in stuff if x > 1)
There are no comments on this comment yet.
List comprehension:
Equivalent generic version: With your own collection type: [1] https://www.python.org/dev/peps/pep-0289/