mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
#2567: remove new-style/old-style class docs.
This commit is contained in:
parent
dc21db36cb
commit
23e8db57e7
6 changed files with 13 additions and 78 deletions
|
@ -730,8 +730,7 @@ set.
|
|||
|
||||
An optional pointer to a function that returns an iterator for the object. Its
|
||||
presence normally signals that the instances of this type are iterable (although
|
||||
sequences may be iterable without this function, and classic instances always
|
||||
have this function, even if they don't define an :meth:`__iter__` method).
|
||||
sequences may be iterable without this function).
|
||||
|
||||
This function has the same signature as :cfunc:`PyObject_GetIter`.
|
||||
|
||||
|
@ -742,9 +741,7 @@ set.
|
|||
|
||||
An optional pointer to a function that returns the next item in an iterator, or
|
||||
raises :exc:`StopIteration` when the iterator is exhausted. Its presence
|
||||
normally signals that the instances of this type are iterators (although classic
|
||||
instances always have this function, even if they don't define a
|
||||
:meth:`__next__` method).
|
||||
normally signals that the instances of this type are iterators.
|
||||
|
||||
Iterator types should also define the :attr:`tp_iter` function, and that
|
||||
function should return the iterator instance itself (not a new iterator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue