mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-40025: Require _generate_next_value_ to be defined before members (GH-19098)
require `_generate_next_value_` to be defined before members
This commit is contained in:
parent
a42ca74fa3
commit
d9a43e20fa
5 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
---------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue