What are “named tuples” in Python?
Reading the changes in Python 3.1, I found something… unexpected:
Reading the changes in Python 3.1, I found something… unexpected:
What is the recommended way of serializing a namedtuple to json with the field names retained?
I’m trying to convert a longish hollow “data” class into a named tuple. My class currently looks like this:
Can anyone amend namedtuple or provide an alternative class so that it works for mutable objects?