diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2015-03-18 17:27:57 -0700 |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2015-03-18 17:27:57 -0700 |
commit | 24e837f23126eab7486a77f3cb51b982226adb70 (patch) | |
tree | f73fe9872045e331ab42f6c34b2109620d9347f7 /Python/random.c | |
parent | 8eef6a9ad04f6f81190f44ae3ded427e4083baa2 (diff) | |
download | cpython-git-24e837f23126eab7486a77f3cb51b982226adb70.tar.gz |
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
Diffstat (limited to 'Python/random.c')
0 files changed, 0 insertions, 0 deletions