23 Jul
2020
23 Jul
'20
10:24 p.m.
Evening, I have run into a situations when an enum member becomes obsolete. However, I'd like to avoid removing the member from the enum to give time for users to catch up to a libraries core types. I've seen Java has a @Deprecated annotation for their Enums. Python enum's can also set an _ignore_ attribute which will avoid instantiating a member in the list. I've implemented a similar approach to solve deprecating enum members. You can check it out here: https://github.com/foxyblue/cpython/pull/1