[Enum] Deprecate member.member access with removal in 3.14 · Issue #95077 · python/cpython (original) (raw)

Accessing one enum member from another was originally forbidden, but added later to improve performance (but still warned against in the docs). Those performance issues are no longer a problem, and it is now possible to have deprecation warnings in the code to aid in transitioning away from such usage.