Subclassing collections namedtuple
NEW UPDATE: In python 3.6+, you can use the new typed syntax and create a typing.NamedTuple. The new syntax supports most of the usual python class creation features (docstrings, default arguments, methods, etc etc are available as of 3.6.1; however multiple inheritance is not supported): import typing class Pokemon(typing.NamedTuple): “”” Attributes ———- name : str … Read more