3 ms·
Check out attrs. You can use frozen=True to get the immutable behavior as well, but there are many other benefits over namedtuple. https://attrs.readthedocs.i
by ericfrederich 9y ago
Check out attrs. You can use frozen=True to get the immutable behavior as well, but there are many other benefits over namedtuple.
https://attrs.readthedocs.io/en/stable/index.html https://attrs.readthedocs.io/en/stable/index.html