[Python-checkins] [Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
ethanfurman
webhook-mailer at python.org
Tue Jan 3 17:08:57 EST 2023
https://github.com/python/cpython/commit/64ed609c532a12b27f67a1e12e9e02f136ee3a94
commit: 64ed609c532a12b27f67a1e12e9e02f136ee3a94
branch: main
author: Christophe Nanteuil <35002064+christopheNan at users.noreply.github.com>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2023-01-03T14:08:50-08:00
summary:
[Enum] docs: replace 'last value' by 'highest value' for Flag auto (GH-100709)
files:
M Doc/library/enum.rst
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 25a6e1f0b616..47d9e39305d0 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -807,9 +807,9 @@ Utilities and Decorators
call an *Enum*'s :meth:`_generate_next_value_` to get an appropriate value.
For *Enum* and *IntEnum* that appropriate value will be the last value plus
one; for *Flag* and *IntFlag* it will be the first power-of-two greater
- than the last value; for *StrEnum* it will be the lower-cased version of the
- member's name. Care must be taken if mixing *auto()* with manually specified
- values.
+ than the highest value; for *StrEnum* it will be the lower-cased version of
+ the member's name. Care must be taken if mixing *auto()* with manually
+ specified values.
*auto* instances are only resolved when at the top level of an assignment:
More information about the Python-checkins
mailing list