Éric Araujo <mer...@netwok.org> added the comment:

A modern solution for this is to define a singledispatch function (with 
implementations for your custom types) and pass it as the `default` parameter 
to the dump functions.

(That won’t avoid the custom → dict copy, but that’s how the module works)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue12657>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to