SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 1 Python

issue23673

add private method to enum to support replacing global constants with Enum members:
- search for candidate constants via supplied filter
- create new enum class and members
- insert enum class and replace constants with members via supplied module name
- replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle
modify IntEnum classes to use new method
E
Ethan Furman committed
24e837f23126eab7486a77f3cb51b982226adb70
Parent: 8eef6a9