[Python-Dev] Pickling of Enums

Guido van Rossum guido at python.org
Tue Feb 18 20:37:15 CET 2014


Well, I'm against that.


On Tue, Feb 18, 2014 at 11:26 AM, Ethan Furman <ethan at stoneleaf.us> wrote:

> 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.
>
> --
> ~Ethan~
>
> [1] http://bugs.python.org/issue20653
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140218/560a78a9/attachment-0001.html>


More information about the Python-Dev mailing list