07.08.2020 11:03, Andrey Shinkevich wrote:
On 07.08.2020 09:30, Vladimir Sementsov-Ogievskiy wrote:
06.08.2020 22:35, Andrey Shinkevich wrote:
As __dict__ is being extended with class members we do not want to
print, add the to_dict() method to classes that returns a dictionary
to_json() ...
On 07.08.2020 09:30, Vladimir Sementsov-Ogievskiy wrote:
06.08.2020 22:35, Andrey Shinkevich wrote:
As __dict__ is being extended with class members we do not want to
print, add the to_dict() method to classes that returns a dictionary
to_json() ... that returns a json-dumpable object
New v
06.08.2020 22:35, Andrey Shinkevich wrote:
As __dict__ is being extended with class members we do not want to
print, add the to_dict() method to classes that returns a dictionary
to_json() ... that returns a json-dumpable object
with desired fields and their values. Extend it in subclass when
As __dict__ is being extended with class members we do not want to
print, add the to_dict() method to classes that returns a dictionary
with desired fields and their values. Extend it in subclass when
necessary to print the final dictionary in the JSON output which
follows.
Suggested-by: Vladimir