]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] [Enum] update member.member removal (GH-29608)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 18 Nov 2021 07:38:56 +0000 (23:38 -0800)
committerGitHub <noreply@github.com>
Thu, 18 Nov 2021 07:38:56 +0000 (23:38 -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 eb5ffd0c5d51c5114f3ac2d18649a94c9d39d3b7..7d166bfb1fcc6123ce72cfc4d629a00622033560 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