[issue18264] enum.IntEnum is not compatible with JSON serialisation

Nick Coghlan report at bugs.python.org
Sat Jun 22 03:08:31 CEST 2013


Nick Coghlan added the comment:

Can I vote for something like "__builtin__" as the protocol, rather than
something entirely specific to serialisation? As in "return the most
appropriate builtin type with the same value"? Then a converter
("operator.builtin"?) could coerce builtin subclasses to their base classes
by default, rather than needing to implement the protocol on every type.

Such a design would need a PEP, of course.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18264>
_______________________________________


More information about the Python-bugs-list mailing list