summaryrefslogtreecommitdiffstats
path: root/Doc/library/enum.rst
diff options
context:
space:
mode:
authorEthan Onstott <storm@stormprograms.com>2020-04-28 17:20:55 (GMT)
committerGitHub <noreply@github.com>2020-04-28 17:20:55 (GMT)
commitd9a43e20facdf4ad10186f820601c6580e1baa80 (patch)
treeff8c2a396025dfa3c37d97b3fe4d3ff516bf9cf4 /Doc/library/enum.rst
parenta42ca74fa30227e2f89a619332557cf093a937d5 (diff)
downloadcpython-d9a43e20facdf4ad10186f820601c6580e1baa80.zip
cpython-d9a43e20facdf4ad10186f820601c6580e1baa80.tar.gz
cpython-d9a43e20facdf4ad10186f820601c6580e1baa80.tar.bz2
bpo-40025: Require _generate_next_value_ to be defined before members (GH-19098)
require `_generate_next_value_` to be defined before members
Diffstat (limited to 'Doc/library/enum.rst')
-rw-r--r--Doc/library/enum.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index eaf29cf..4b4f5eb 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -273,6 +273,10 @@ overridden::
the next :class:`int` in sequence with the last :class:`int` provided, but
the way it does this is an implementation detail and may change.
+.. note::
+
+ The :meth:`_generate_next_value_` method must be defined before any members.
+
Iteration
---------