4 ms·
I would agree. Namedtuple has an asdict method so that reserialization to JSON is simple; you can do the same for a class.
by pdonis 10y ago
I would agree. Namedtuple has an asdict method so that reserialization to JSON is simple; you can do the same for a class.