← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 pitrou
收信人 amaury.forgeotdarc, barry, eli.bendersky, eric.snow, ethan.furman, ncoghlan, pitrou
日期 2013-06-19.14:23:12
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1371651792.4.0.282227157576.issue18264@psf.upfronthosting.co.za>
In-reply-to
内容
> 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.
历史
日期 用户 动作 参数
2013-06-19 14:23:12pitrou修改recipients: + pitrou, barry, amaury.forgeotdarc, ncoghlan, eli.bendersky, ethan.furman, eric.snow
2013-06-19 14:23:12pitrou修改messageid: <1371651792.4.0.282227157576.issue18264@psf.upfronthosting.co.za>
2013-06-19 14:23:12pitrou链接issue18264 messages
2013-06-19 14:23:12pitrou创建