Antoine Pitrou added the comment:

> JSON has to be taught how to serialize enums.  Of course, it also has
> to be
> taught how to serialize datetimes, timedeltas, and other common data
> types.

How so? The point of IntEnum was that it derived from int, and therefore
would avoid any need for special-casing in C code.

(now if json has a PyLong_CheckExact() check, perhaps it can be relaxed
to PyLong_Check()...)

----------

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

Reply via email to