r/Python • python-programming.courses • Oct 30 '15

Improving your code readability with namedtuples

https://python-programming.courses/pythonic/improving-your-code-readability-with-namedtuples/
186 Upvotes

79 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Oct 31 '15

[removed] — view removed comment

3

u/alantrick Oct 31 '15

Well, at that point, it's not a tuple anymore, and you can just use dict or object

1

u/[deleted] Oct 31 '15

[removed] — view removed comment

1

u/ivosaurus pip'ing it up Nov 02 '15

I basically use it as a struct pattern. Most of the time the information I put in one doesn't change after creating it.