diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-07-27 06:24:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 06:24:18 (GMT) |
commit | 434e3b89a7dfc5a9cfc644327c1774a50332b126 (patch) | |
tree | 9568f14351db304cb90f6bd52597965823b607fa /Doc/whatsnew | |
parent | 6bbcd792f74148273bf14ab2bad87f190d80b076 (diff) | |
download | cpython-434e3b89a7dfc5a9cfc644327c1774a50332b126.zip cpython-434e3b89a7dfc5a9cfc644327c1774a50332b126.tar.gz cpython-434e3b89a7dfc5a9cfc644327c1774a50332b126.tar.bz2 |
[3.12] gh-107091: Fix some uses of :attr: role (GH-107318) (GH-107330)
Fix also formatting of PyMethodDef members.
(cherry picked from commit d363eb5b0255c055e7b43f5e2c0847f555e1982e)
Diffstat (limited to 'Doc/whatsnew')
-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 b410fe1..162d2c3 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. |