Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Exposing Python 3.6's Private Dict Version. Parent comment
> from collections import namedtuple
> Point = namedtuple('Point', ['x', 'y'])
> points = [Point(3,4), Point(5,2)]
> for p in points:
> print(p.x, p.y)
There are no comments on this comment yet.
> from collections import namedtuple
> Point = namedtuple('Point', ['x', 'y'])
> points = [Point(3,4), Point(5,2)]
> for p in points:
> print(p.x, p.y)