A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-February/132466.html below:

[Python-Dev] Pickling of Enums

[Python-Dev] Pickling of Enums [Python-Dev] Pickling of EnumsAntoine 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.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4