[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-18 Thread Ethan Furman
Changes by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5dd7b5fb65e7 by Ethan Furman in branch '3.4': issue23673 https://hg.python.org/cpython/rev/5dd7b5fb65e7 -- ___ Python tracker ___ _

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset c93d46fd85ee by Ethan Furman in branch 'default': issue23673 https://hg.python.org/cpython/rev/c93d46fd85ee -- nosy: +python-dev ___ Python tracker ___

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-16 Thread Ethan Furman
Ethan Furman added the comment: Patch adds Enum._convert which is a class method that handles: - creating the new Enum - adding the appropriate members - adding the new Enum to the module's namespace (which is a passed parameter) - replacing the __reduce_ex__ method to return just the me

[issue23673] IntEnum is unpicklable by previous Python versions

2015-03-15 Thread Ethan Furman
New submission from Ethan Furman: IntEnum is advertised as being a drop-in replacement for integer contants; however this fails in the case of unpickling on previous Python versions. This occurs because when a pickle is created the module, class, and value are stored -- but those don't exist p