Y
Hacker News
new
|
ask
|
show
|
jobs
by
nsonha
1641 days ago
looks like the key thing is immutability
2 comments
aix1
1641 days ago
To clarify, both named tuples and dataclasses can be immutable (the former are always immutable and the latter can be made immutable with `frozen=True`).
There is no way, however, to make a named tuple
mutable
.
link
dreamofkoholint
1640 days ago
Key thing for me was the ability to add type hinting
link
There is no way, however, to make a named tuple mutable.