Message191478
| Author |
pitrou |
| Recipients |
amaury.forgeotdarc, barry, eli.bendersky, eric.snow, ethan.furman, ncoghlan, pitrou |
| Date |
2013年06月19日.14:23:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1371651792.4.0.282227157576.issue18264@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> Serialization isn't the only issue - you have to know how to
> deserialize as well.
I think this is pretty much besides the point. IntEnums are meant to be substitutible with plain ints, so you can deserialize as a plain int.
Moreoven, JSON doesn't fill the same use cases as pickle: it is meant to communicate with services written in any languages, and those services won't have the same enum mnemonics as your Python library. |
|