summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-04-07 19:17:06 (GMT)
committerGeorg Brandl <georg@python.org>2008-04-07 19:17:06 (GMT)
commit23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693 (patch)
treeebb33093929aee3872ca06ee93b9db57338d331f /Doc/c-api
parentdc21db36cb481a192cc259b21e80e8d84f45f5d3 (diff)
downloadcpython-23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693.zip
cpython-23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693.tar.gz
cpython-23e8db57e7213f88d68b3f7ccb8db5e3b6d9a693.tar.bz2
#2567: remove new-style/old-style class docs.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/typeobj.rst7
1 files changed, 2 insertions, 5 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index 03cb1b3..83bef7d 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -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