Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-43162: [Enum] deprecate enum member.member access #24486

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Feb 9, 2021

In 3.5 (?) a speed optimization made it possible to access members as
attributes of other members, i.e. Color.RED.BLUE. This was always
discouraged in the docs, and other recent optimizations has made that
one no longer necessary. Because some may be relying on it anyway, it
is being deprecated in 3.10, and will be removed in 3.11.

https://bugs.python.org/issue43162

In 3.5 (?) a speed optimization made it possible to access members as
attributes of other members, i.e. ``Color.RED.BLUE``.  This was always
discouraged in the docs, and other recent optimizations has made that
one no longer necessary.  Because some may be relying on it anyway, it
is being deprecated in 3.10, and will be removed in 3.11.
@ethanfurman ethanfurman merged commit d65b903 into python:master Feb 9, 2021
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
In 3.5 (?) a speed optimization made it possible to access members as
attributes of other members, i.e. ``Color.RED.BLUE``.  This was always
discouraged in the docs, and other recent optimizations has made that
one no longer necessary.  Because some may be relying on it anyway, it
is being deprecated in 3.10, and will be removed in 3.11.
@ethanfurman ethanfurman deleted the enum-member2member_access branch April 15, 2021 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants