Can anyone amend namedtuple or provide an alternative class so that it works for mutable objects?
Primarily for readability, I would like something similar to namedt
Provided performance is of little importance, one could use a silly hack like:
from collection import namedtuple Point = namedtuple('Point', 'x y z') mutable_z = Point(1,2,[3])