Message191472
| Author |
pitrou |
| Recipients |
barry, eli.bendersky, ethan.furman, ncoghlan, pitrou |
| Date |
2013年06月19日.14:07:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<2099081041.98483495.1371650866175.JavaMail.root@zimbra10-e2.priv.proxad.net> |
| In-reply-to |
<20130619095449.7c7ef695@anarchist> |
| Content |
> 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()...) |
|