@@ -483,7 +483,7 @@ PyObject Slots
483483--------------
484484
485485The type object structure extends the :c:type: `PyVarObject ` structure. The
486- :c:member: `~PyVarObject.ob_size ` field is used for dynamic types (created by :func: `type_new `,
486+ :c:member: `~PyVarObject.ob_size ` field is used for dynamic types (created by :c: func: `! type_new `,
487487usually called from a class statement). Note that :c:data: `PyType_Type ` (the
488488metatype) initializes :c:member: `~PyTypeObject.tp_itemsize `, which means that its instances (i.e.
489489type objects) *must * have the :c:member: `~PyVarObject.ob_size ` field.
@@ -1305,8 +1305,8 @@ and :c:data:`PyType_Type` effectively act as defaults.)
13051305 The :c:member: `~PyTypeObject.tp_traverse ` pointer is used by the garbage collector to detect
13061306 reference cycles. A typical implementation of a :c:member: `~PyTypeObject.tp_traverse ` function
13071307 simply calls :c:func: `Py_VISIT ` on each of the instance's members that are Python
1308- objects that the instance owns. For example, this is function :c:func: `local_traverse ` from the
1309- :mod: `_thread ` extension module::
1308+ objects that the instance owns. For example, this is function :c:func: `! local_traverse ` from the
1309+ :mod: `! _thread ` extension module::
13101310
13111311 static int
13121312 local_traverse(localobject *self, visitproc visit, void *arg)
@@ -1658,7 +1658,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
16581658 called; it may also be initialized to a dictionary containing initial attributes
16591659 for the type. Once :c:func: `PyType_Ready ` has initialized the type, extra
16601660 attributes for the type may be added to this dictionary only if they don't
1661- correspond to overloaded operations (like :meth: `__add__ `).
1661+ correspond to overloaded operations (like :meth: `~object. __add__ `).
16621662
16631663 **Inheritance: **
16641664
@@ -1759,25 +1759,25 @@ and :c:data:`PyType_Type` effectively act as defaults.)
17591759 **Default: **
17601760
17611761 This slot has no default. For :ref: `static types <static-types >`, if the
1762- field is ``NULL `` then no :attr: `__dict__ ` gets created for instances.
1762+ field is ``NULL `` then no :attr: `~object. __dict__ ` gets created for instances.
17631763
17641764
17651765.. c :member :: initproc PyTypeObject.tp_init
17661766
17671767 An optional pointer to an instance initialization function.
17681768
1769- This function corresponds to the :meth: `__init__ ` method of classes. Like
1770- :meth: `__init__ `, it is possible to create an instance without calling
1771- :meth: `__init__ `, and it is possible to reinitialize an instance by calling its
1772- :meth: `__init__ ` method again.
1769+ This function corresponds to the :meth: `~object. __init__ ` method of classes. Like
1770+ :meth: `! __init__ `, it is possible to create an instance without calling
1771+ :meth: `! __init__ `, and it is possible to reinitialize an instance by calling its
1772+ :meth: `! __init__ ` method again.
17731773
17741774 The function signature is::
17751775
17761776 int tp_init(PyObject *self, PyObject *args, PyObject *kwds);
17771777
17781778 The self argument is the instance to be initialized; the *args * and *kwds *
17791779 arguments represent positional and keyword arguments of the call to
1780- :meth: `__init__ `.
1780+ :meth: `~object. __init__ `.
17811781
17821782 The :c:member: `~PyTypeObject.tp_init ` function, if not ``NULL ``, is called when an instance is
17831783 created normally by calling its type, after the type's :c:member: `~PyTypeObject.tp_new ` function
@@ -2051,7 +2051,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
20512051 In other words, it is used to implement
20522052 :ref: `vectorcall <vectorcall >` for ``type.__call__ ``.
20532053 If ``tp_vectorcall `` is ``NULL ``, the default call implementation
2054- using :attr: ` __new__ ` and :attr: ` __init__ ` is used.
2054+ using :meth: ` ~object. __new__ ` and :meth: ` ~object. __init__ ` is used.
20552055
20562056 **Inheritance: **
20572057
@@ -2243,8 +2243,8 @@ Mapping Object Structures
22432243.. c :member :: objobjargproc PyMappingMethods.mp_ass_subscript
22442244
22452245 This function is used by :c:func: `PyObject_SetItem `,
2246- :c:func: `PyObject_DelItem `, :c:func: `PyObject_SetSlice ` and
2247- :c:func: `PyObject_DelSlice `. It has the same signature as
2246+ :c:func: `PyObject_DelItem `, :c:func: `PySequence_SetSlice ` and
2247+ :c:func: `PySequence_DelSlice `. It has the same signature as
22482248 :c:func: `!PyObject_SetItem `, but *v * can also be set to ``NULL `` to delete
22492249 an item. If this slot is ``NULL ``, the object does not support item
22502250 assignment and deletion.
@@ -2466,7 +2466,7 @@ Async Object Structures
24662466 PyObject *am_aiter(PyObject *self);
24672467
24682468 Must return an :term: `asynchronous iterator ` object.
2469- See :meth: `__anext__ ` for details.
2469+ See :meth: `~object. __anext__ ` for details.
24702470
24712471 This slot may be set to ``NULL `` if an object does not implement
24722472 asynchronous iteration protocol.
@@ -2477,7 +2477,8 @@ Async Object Structures
24772477
24782478 PyObject *am_anext(PyObject *self);
24792479
2480- Must return an :term: `awaitable ` object. See :meth: `__anext__ ` for details.
2480+ Must return an :term: `awaitable ` object.
2481+ See :meth: `~object.__anext__ ` for details.
24812482 This slot may be set to ``NULL ``.
24822483
24832484.. c :member :: sendfunc PyAsyncMethods.am_send
0 commit comments