summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>2020-01-06 16:04:43 -0600
committerEric V. Smith <eric@trueblade.com>2020-01-06 20:41:49 -0500
commit50023ff7e21564208c0532d0167f96f4c576867b (patch)
treed33b54a001e7eb82bdad7803cc80daba7e94ddbb
parent676b16c14040ddb9a2ef3408e66a77c1dfb8e841 (diff)
downloadcpython-git-backport-24bcefc-3.7.tar.gz
[3.7] bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)backport-24bcefc-3.7
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.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index a6285ffaf1..cf9942dbb5 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``