]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] [Enum] update member.member removal (GH-29611)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 18 Nov 2021 08:50:42 +0000 (00:50 -0800)
committerGitHub <noreply@github.com>
Thu, 18 Nov 2021 08:50:42 +0000 (00:50 -0800)
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`.

Doc/library/enum.rst

index 4e15901c66bfc9163ab1395d91f7fc131428f181..056b9f7bf427aad52a267c77fcf6dee822fe6db5 100644 (file)
@@ -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