summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-01 19:12:45 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-01 19:12:45 (GMT)
commit39668f57f445b8a2db63b0d0dc32c55a90d3f59e (patch)
treed7e9d1e0d5a45955ab883d8fbc5a020cec21df38 /Doc/library
parentb3c872403d0d2b00a1a383190d3e14eb94e84df1 (diff)
downloadcpython-39668f57f445b8a2db63b0d0dc32c55a90d3f59e.zip
cpython-39668f57f445b8a2db63b0d0dc32c55a90d3f59e.tar.gz
cpython-39668f57f445b8a2db63b0d0dc32c55a90d3f59e.tar.bz2
Issue #18589: fix hyperlinking of type slots (tp_*)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/gc.rst4
-rw-r--r--Doc/library/stdtypes.rst6
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/gc.rst b/Doc/library/gc.rst
index 41bda1e..5878da5 100644
--- a/Doc/library/gc.rst
+++ b/Doc/library/gc.rst
@@ -121,8 +121,8 @@ The :mod:`gc` module provides the following functions:
Return a list of objects directly referred to by any of the arguments. The
referents returned are those objects visited by the arguments' C-level
- :attr:`tp_traverse` methods (if any), and may not be all objects actually
- directly reachable. :attr:`tp_traverse` methods are supported only by objects
+ :c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
+ directly reachable. :c:member:`~PyTypeObject.tp_traverse` methods are supported only by objects
that support garbage collection, and are only required to visit objects that may
be involved in a cycle. So, for example, if an integer is directly reachable
from an argument, that integer object may or may not appear in the result list.
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index aaf6ce6..cf989cf 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -751,7 +751,7 @@ support:
iterators for those iteration types. (An example of an object supporting
multiple forms of iteration would be a tree structure which supports both
breadth-first and depth-first traversal.) This method corresponds to the
- :attr:`tp_iter` slot of the type structure for Python objects in the Python/C
+ :c:member:`~PyTypeObject.tp_iter` slot of the type structure for Python objects in the Python/C
API.
The iterator objects themselves are required to support the following two
@@ -762,7 +762,7 @@ methods, which together form the :dfn:`iterator protocol`:
Return the iterator object itself. This is required to allow both containers
and iterators to be used with the :keyword:`for` and :keyword:`in` statements.
- This method corresponds to the :attr:`tp_iter` slot of the type structure for
+ This method corresponds to the :c:member:`~PyTypeObject.tp_iter` slot of the type structure for
Python objects in the Python/C API.
@@ -770,7 +770,7 @@ methods, which together form the :dfn:`iterator protocol`:
Return the next item from the container. If there are no further items, raise
the :exc:`StopIteration` exception. This method corresponds to the
- :attr:`tp_iternext` slot of the type structure for Python objects in the
+ :c:member:`~PyTypeObject.tp_iternext` slot of the type structure for Python objects in the
Python/C API.
Python defines several iterator objects to support iteration over general and