diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2015-03-18 18:19:30 -0700 |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2015-03-18 18:19:30 -0700 |
commit | 482fe0477e5923f0b8fff16c59052650cf7247cf (patch) | |
tree | 0b2ee2281894cda0a745373a8a5df9569a33ec55 /Python/pytime.c | |
parent | d833779ceaebeb29352488ffddabf5fc2f070364 (diff) | |
download | cpython-git-482fe0477e5923f0b8fff16c59052650cf7247cf.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/pytime.c')
0 files changed, 0 insertions, 0 deletions