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:43:54 -0500 |
commit | 8953d06ccbcbf6e0fb5323a0812c0a7aabb937c5 (patch) | |
tree | 202c17594a6826793508f78c5d6887c5791635a1 | |
parent | 4171b8e41165daadb034867eae61e05f8d2bc9c0 (diff) | |
download | cpython-git-backport-24bcefc-3.6.tar.gz |
[3.6] bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)backport-24bcefc-3.6
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 2bf4885d21..2c5cb3f24c 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`` |