mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
This commit is contained in:
parent
b1ce22d086
commit
24bcefcb74
1 changed files with 1 additions and 1 deletions
|
@ -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``
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue