[Python-Dev] Pickling of Enums

Ethan Furman ethan at stoneleaf.us
Tue Feb 18 20:26:29 CET 2014

On 02/18/2014 11:20 AM, Guido van Rossum wrote:
> I'm confused. AFAICT enums are pickled by value too. What am I missing? Are we confused about terminology or about
> behavior? (I'm just guessing that the pickling happens by value because I don't see the string AF_INET.)

There's an open issue [1] to switch to pickling by name.


[1] http://bugs.python.org/issue20653

More information about the Python-Dev mailing list