|
|
|
|
|
by sevensor
653 days ago
|
|
I mostly migrated to frozen dataclasses from namedtuples when dataclasses became available. I’m curious about your preference for the namedtuple. Is it the lighter weight, the strong immutability, the easy destructing? Or is it that most tuples might as well be namedtuples? Those are the advantages I can think of anyway :) |
|
[0]: https://docs.python.org/3/library/collections.html#collectio...