[Python-checkins] bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)
Miss Islington (bot)
webhook-mailer at python.org
Mon Jan 6 17:04:47 EST 2020
https://github.com/python/cpython/commit/24bcefcb74231476b055bb6f0726642abeb10f04
commit: 24bcefcb74231476b055bb6f0726642abeb10f04
branch: master
author: YoSTEALTH <35307184+YoSTEALTH at users.noreply.github.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2020-01-06T14:04:43-08:00
summary:
bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)
Updated as Eric mentioned "By default, the initial value starts at 1"
https://bugs.python.org/issue39234
Automerge-Triggered-By: @ericvsmith
files:
M Doc/library/enum.rst
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index cfe3c207e1eee..eaf29cfde2344 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. Initial value starts at 1.
+ Instances are replaced with an appropriate value for Enum members. By default, the initial value starts at 1.
.. versionadded:: 3.6 ``Flag``, ``IntFlag``, ``auto``
More information about the Python-checkins
mailing list