Open jrwrigh opened 6 years ago
There are actually instructions for how to reset the __str__
in the python documentation for namedtuples. Basically you create a class that has the namedtuple as a subclass, then modify that classes __str__
function. As to how to do that recursively, I'm not sure.
It'd be nice to have
__dict__()
to be able to list out all the keys and values. That or it print out the contents in a json-like format