[Python-checkins] bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872)

Ethan Furman webhook-mailer at python.org
Mon Jan 6 14:53:41 EST 2020


https://github.com/python/cpython/commit/2e9012a3e1e316c54e27f51ba5849ba06eab7da2
commit: 2e9012a3e1e316c54e27f51ba5849ba06eab7da2
branch: master
author: YoSTEALTH <35307184+YoSTEALTH at users.noreply.github.com>
committer: Ethan Furman <ethan at stoneleaf.us>
date: 2020-01-06T11:53:36-08:00
summary:

bpo-39234: Doc: `enum.auto()` incrementation value not specified. (GH-17872)

* `enum.auto()` initial value is now specified as being `1`.

files:
M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 1d6912aaf19ad..cfe3c207e1eee 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. Initial value starts at 1.
 
 .. versionadded:: 3.6  ``Flag``, ``IntFlag``, ``auto``
 



More information about the Python-checkins mailing list