Named tuples provide clear and concise data access via keys and dot notation. While the tuple is immutable, the data structures it contains can be mutable. This could provide some improvements in data access beyond the @property decorators currently in use. Review this more thoroughly and how it may impact data access methods.
from collections import namedtuple
Named tuples provide clear and concise data access via keys and dot notation. While the tuple is immutable, the data structures it contains can be mutable. This could provide some improvements in data access beyond the
@property
decorators currently in use. Review this more thoroughly and how it may impact data access methods.Reference: https://realpython.com/python-namedtuple/