消息 [191478]
> 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:12 | pitrou | 修改 | recipients:
+ pitrou, barry, amaury.forgeotdarc, ncoghlan, eli.bendersky, ethan.furman, eric.snow |
| 2013-06-19 14:23:12 | pitrou | 修改 | messageid: <1371651792.4.0.282227157576.issue18264@psf.upfronthosting.co.za> |
| 2013-06-19 14:23:12 | pitrou | 链接 | issue18264 messages |
| 2013-06-19 14:23:12 | pitrou | 创建 | |
|