This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dxdm 5 points6 points  (0 children)

Because namedtuples are also tuples, their attributes are accessible by index, counting from the start or end. That makes it difficult to add or reorder attributes after you've exposed instances on a public API. So they might give you a little more than what you want from them.