July 29, 2021
1:10 a.m.
I like this idea! It's true that deprecating the namedtuple we lose important semantics of order - however, if its use as a weaker dataclass is explicitly discouraged in the documentation, then much of the problem (i.e., people that want to have a simple data object use two incompatible things depending on which parts of the the Python doc they read first) simply fades away.