summaryrefslogtreecommitdiffstats
path: root/Doc/howto/enum.rst
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2023-04-06 00:33:52 (GMT)
committerGitHub <noreply@github.com>2023-04-06 00:33:52 (GMT)
commit4ec8dd10bd4682793559c4eccbcf6ae00688c4c3 (patch)
treeac3598c6324dc5b0e75eea1d9ebaa4f3b54f2676 /Doc/howto/enum.rst
parentb4978ff872be5102117b4e25d93dbbb4e04c8292 (diff)
downloadcpython-4ec8dd10bd4682793559c4eccbcf6ae00688c4c3.zip
cpython-4ec8dd10bd4682793559c4eccbcf6ae00688c4c3.tar.gz
cpython-4ec8dd10bd4682793559c4eccbcf6ae00688c4c3.tar.bz2
gh-93910: [Enum] remove member.member deprecation (GH-103236)
i.e. Color.RED.BLUE is now officially supported.
Diffstat (limited to 'Doc/howto/enum.rst')
-rw-r--r--Doc/howto/enum.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst
index 38951ed..9390fad 100644
--- a/Doc/howto/enum.rst
+++ b/Doc/howto/enum.rst
@@ -988,12 +988,11 @@ but remain normal attributes.
""""""""""""""""""""
Enum members are instances of their enum class, and are normally accessed as
-``EnumClass.member``. In Python versions starting with ``3.5`` you could access
-members from other members -- this practice is discouraged, is deprecated
-in ``3.12``, and will be removed in ``3.14``.
+``EnumClass.member``. In certain situations, such as writing custom enum
+behavior, being able to access one member directly from another is useful,
+and is supported.
.. versionchanged:: 3.5
-.. versionchanged:: 3.12
Creating members that are mixed with other data types