Skip to content

Commit ef677f2

Browse files
committed
Adjust wording/formatting of *token*
1 parent 38bbba5 commit ef677f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/type.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ Type Objects
323323
.. c:function:: PyObject* PyType_GetModuleByDef(PyTypeObject *type, struct PyModuleDef *def)
324324
325325
Find the first superclass whose module was created from the given
326-
:c:type:`PyModuleDef` *def*, or whose *token* is equal to *def*,
327-
and return that module.
326+
:c:type:`PyModuleDef` *def*, or whose :ref:`module token <ext-module-token>`
327+
is equal to *def*, and return that module.
328328
329329
Note that modules created from a :c:type:`PyModuleDef` always have their
330330
token set to the :c:type:`PyModuleDef`'s address.
@@ -344,7 +344,7 @@ Type Objects
344344
.. c:function:: int PyType_GetBaseByToken(PyTypeObject *type, void *tp_token, PyTypeObject **result)
345345
346346
Find the first superclass in *type*'s :term:`method resolution order` whose
347-
:c:macro:`Py_tp_token` token is equal to the given one.
347+
:c:macro:`Py_tp_token` token is equal to *tp_token*.
348348
349349
* If found, set *\*result* to a new :term:`strong reference`
350350
to it and return ``1``.
@@ -355,7 +355,7 @@ Type Objects
355355
The *result* argument may be ``NULL``, in which case *\*result* is not set.
356356
Use this if you need only the return value.
357357
358-
The *token* argument may not be ``NULL``.
358+
The *tp_token* argument may not be ``NULL``.
359359
360360
.. versionadded:: 3.14
361361

0 commit comments

Comments
 (0)