[Python-checkins] [3.10] [Enum] update member.member removal (GH-29608)

ethanfurman webhook-mailer at python.org
Thu Nov 18 02:39:02 EST 2021

commit: 65c089751b81a132613f4528f16938918a013f25
branch: 3.10
author: Ethan Furman <ethan at stoneleaf.us>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2021-11-17T23:38:56-08:00

[3.10] [Enum] update member.member removal (GH-29608)

Accessing one enum member from another originally raised an `AttributeError`, but became possible due to a performance boost implementation detail.  In 3.11 it will again raise an `AttributeError`.

M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index eb5ffd0c5d51c..7d166bfb1fcc6 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -1152,7 +1152,7 @@ all-uppercase names for members)::
 .. note::
-   This behavior is deprecated and will be removed in 3.12.
+   This behavior is deprecated and will be removed in 3.11.
 .. versionchanged:: 3.5

More information about the Python-checkins mailing list