]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39234: `enum.auto()` default initial value as 1 (GH-17878)
authorYoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
Mon, 6 Jan 2020 22:04:43 +0000 (16:04 -0600)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 6 Jan 2020 22:04:43 +0000 (14:04 -0800)
Updated as Eric mentioned "By default, the initial value starts at 1"

https://bugs.python.org/issue39234

Automerge-Triggered-By: @ericvsmith
Doc/library/enum.rst

index cfe3c207e1eee39e5aa2e992b30b3ed3cf95d832..eaf29cfde2344d9005d76b65af56bf884144260b 100644 (file)
@@ -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``