[Python-checkins] [3.9] [Enum] update member.member removal (GH-29611)

ethanfurman webhook-mailer at python.org
Thu Nov 18 03:51:25 EST 2021


https://github.com/python/cpython/commit/feccea6a7eb1309513750bb4a31aee5a65c7c4bf
commit: feccea6a7eb1309513750bb4a31aee5a65c7c4bf
branch: 3.9
author: Ethan Furman <ethan at stoneleaf.us>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2021-11-18T00:50:42-08:00
summary:

[3.9] [Enum] update member.member removal (GH-29611)

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`.

files:
M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 4e15901c66bfc..056b9f7bf427a 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