DEV Community

Discussion on: Namedtuple in Python

Collapse
 
rkshrksh profile image
Rakesh Gautam

Yes. As mentioned on attrs docs, Namedtuples have some limitations over attrs. But for the simple use, where you just have to give names to your fields and want a faster solution, I think Namedtuples are the way to go.

Namedtuples are ultimately just Tuples, they are not supposed to be used as some replacement for classes.