Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nsonha
on Dec 24, 2021
|
parent
|
context
|
favorite
| on:
Attrs – the Python library everyone needs (2016)
looks like the key thing is immutability
aix1
on Dec 24, 2021
|
next
[–]
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
.
dreamofkoholint
on Dec 25, 2021
|
prev
[–]
Key thing for me was the ability to add type hinting
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: