diff options
author | YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com> | 2020-01-06 16:04:43 -0600 |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2020-01-06 20:40:02 -0500 |
commit | ef34ce7239bce72e34874c8a3777c17dcf8f8c82 (patch) | |
tree | b654204a00e50a4279b84375d92e9517f2b95347 | |
parent | fb59f5ffe80a1f2dcf7c6cbd2406e15bea49da21 (diff) | |
download | cpython-git-backport-24bcefc-3.8.tar.gz |
[3.8] bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)backport-24bcefc-3.8
Updated as Eric mentioned "By default, the initial value starts at 1"
https://bugs.python.org/issue39234
Automerge-Triggered-By: @ericvsmith.
(cherry picked from commit 24bcefcb74231476b055bb6f0726642abeb10f04)
Co-authored-by: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
-rw-r--r-- | Doc/library/enum.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 19277d7699..35cc1a9f09 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -55,7 +55,7 @@ helper, :class:`auto`. .. class:: auto - Instances are replaced with an appropriate value for Enum members. + Instances are replaced with an appropriate value for Enum members. By default, the initial value starts at 1. .. versionadded:: 3.6 ``Flag``, ``IntFlag``, ``auto`` |