[Python-Dev] Pickling of Enums

Antoine Pitrou solipsis at pitrou.net
Tue Feb 18 19:05:52 CET 2014

On Tue, 18 Feb 2014 10:01:42 -0800
Ethan Furman <ethan at stoneleaf.us> wrote:
> I guess the question is which is more important?  Identity comparison or this (probably) rare use-case?  If we stick 
> with identity I'm not aware of any work-around for pickling enum members that are aliases on one system, but distinct on 
> another.

I don't think identity comparison is important. Enum values are
supposed to act like values, not full-blown objects.

OTOH, the "pickled aliases may end up different on other systems" issue
is sufficiently fringy that we may simply paper over it.



More information about the Python-Dev mailing list