]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872)
authorYoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com>
Mon, 6 Jan 2020 19:53:36 +0000 (13:53 -0600)
committerEthan Furman <ethan@stoneleaf.us>
Mon, 6 Jan 2020 19:53:36 +0000 (11:53 -0800)
* `enum.auto()` initial value is now specified as being `1`.

Doc/library/enum.rst

index 1d6912aaf19adfd608555aaf1f1477f590a987de..cfe3c207e1eee39e5aa2e992b30b3ed3cf95d832 100644 (file)
@@ -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. Initial value starts at 1.
 
 .. versionadded:: 3.6  ``Flag``, ``IntFlag``, ``auto``