Why there's no __json__()?

Marco Sulla mail.python.org at marco.sulla.e4ward.com
Mon Mar 2 16:31:12 EST 2020


As title. For example, `copy.copy` can use the __copy__() method of a
class, if defined.

Is this not possible with `json`?


More information about the Python-list mailing list