Skip to content

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