n is for namedtuple My favourite data structure in Python is namedtuple! It's li...
Juhis @hamatti@mastodon.world
n is for namedtuple
My favourite data structure in Python is namedtuple! It's like tuple but with names. And you can replace your existing tuples with it, making it an easy upgrade for your codebase.
https://hamatti.org/posts/n-is-for-namedtuple-python-a-to-z/