Re:Attrs – the Python library everyone needs (2016)
by rguillebert on Friday December 24, 2021 @04:41PM
(#29678013)
Namedtuples also behave like tuples, which is great when you want to incrementally turn tuples into classes but if you want an easy way of creating classes, it's probably not a good idea to have them behave like tuples. Plus dataclasses have more features.
[ Parent
| on HN ]