Programs must be written for people to read, and only incidentally for machines...– H. Abelson and G. Sussman
Named Tuples are awesome. They allow a coder to create very ad-hoc data structures while carrying enough identity information in the structure to treat them like types. Here I create a Person type out of a named tuple. >>> from collections import namedtuple >>> Person = namedtuple('Person', 'first_name last_name user_id') >>> p = Person('James', 'Dennis',...