diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-27 05:52:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 05:52:54 (GMT) |
commit | d363eb5b0255c055e7b43f5e2c0847f555e1982e (patch) | |
tree | 126be9692e95625c5fb5c32781ef9ca0d21da187 /Doc/whatsnew/2.5.rst | |
parent | 8d61a71f9c81619e34d4a30b625922ebc83c561b (diff) | |
download | cpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.zip cpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.tar.gz cpython-d363eb5b0255c055e7b43f5e2c0847f555e1982e.tar.bz2 |
gh-107091: Fix some uses of :attr: role (GH-107318)
Fix also formatting of PyMethodDef members.
Diffstat (limited to 'Doc/whatsnew/2.5.rst')
-rw-r--r-- | Doc/whatsnew/2.5.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst index ec4a7eb..2bb681b 100644 --- a/Doc/whatsnew/2.5.rst +++ b/Doc/whatsnew/2.5.rst @@ -954,7 +954,7 @@ The return value must be either a Python integer or long integer. The interpreter will check that the type returned is correct, and raises a :exc:`TypeError` if this requirement isn't met. -A corresponding :attr:`nb_index` slot was added to the C-level +A corresponding :c:member:`~PyNumberMethods.nb_index` slot was added to the C-level :c:type:`PyNumberMethods` structure to let C extensions implement this protocol. ``PyNumber_Index(obj)`` can be used in extension code to call the :meth:`__index__` function and retrieve its result. |