Message329958
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) |
|
Date |
User |
Action |
Args |
2018-11-15 18:24:29 | eric.araujo | set | recipients:
+ eric.araujo, barry, rhettinger, ezio.melotti, daniel.urban, Tom.Brown, nikow, amirouche, wiz21 |
2018-11-15 18:24:29 | eric.araujo | set | messageid: <1542306269.01.0.788709270274.issue12657@psf.upfronthosting.co.za> |
2018-11-15 18:24:28 | eric.araujo | link | issue12657 messages |
2018-11-15 18:24:28 | eric.araujo | create | |
|