summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2022-12-05 10:35:31 (GMT)
committerGitHub <noreply@github.com>2022-12-05 10:35:31 (GMT)
commite3a3863cb9561705d3dd59a9367427ed45dfb5ea (patch)
tree5daebe03f39dfde3b807126091ef0d68d012f139 /Doc
parentbdc93b8a3563b4a3adb25fa902c0c879ccf427f6 (diff)
downloadcpython-e3a3863cb9561705d3dd59a9367427ed45dfb5ea.zip
cpython-e3a3863cb9561705d3dd59a9367427ed45dfb5ea.tar.gz
cpython-e3a3863cb9561705d3dd59a9367427ed45dfb5ea.tar.bz2
gh-93464: [Enum] Add versionchanged tag (#99997)
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/enum.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index e29f583..208aecf 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -804,6 +804,11 @@ Utilities and Decorators
* ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
create the ``THREE`` enum member)
+ .. versionchanged:: 3.11.1
+
+ In prior versions, ``auto()`` had to be the only thing
+ on the assignment line to work properly.
+
``_generate_next_value_`` can be overridden to customize the values used by
*auto*.