[Python-Dev] Pickling of Enums
ethan at stoneleaf.us
Tue Feb 18 19:16:17 CET 2014
On 02/18/2014 10:05 AM, Guido van Rossum wrote:
> Hm. But there's an implementation that has made it unscathed through several betas and an RC. AFAICT that beta pickles
> enums by value. And I happen to think that that is the better choice (but I don't have time to explain this gut feeling
> until after 3.4 has been released).
This conversation wasn't in the PEP, but as I recall we decided to go with value instead of name for json because the
receiving end may not be running Python.
Is having json do it one way and pickle another a problem?
More information about the Python-Dev