3 ms·
> Are you dynamically creating a named tuple (a record?) No, it's creating a namedtuple type, aka a subclass of `tuple`. So the fieldnames are literally the na
by masklinn 5y ago
> Are you dynamically creating a named tuple (a record?)
No, it's creating a namedtuple type, aka a subclass of `tuple`. So the fieldnames are literally the names given to the tuple's items: Point is a pair (a two-uple) whose 0th item can be accessed as `x` and 1st item `y`.