Re: [Python-Dev] Pickling of Enums

2014年2月18日 10:07:52 -0800

On 2014年2月18日 10:01:42 -0800
Ethan Furman <[email protected]> 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.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to