[Python-checkins] bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)

Miss Islington (bot) webhook-mailer at python.org
Wed Jun 19 23:41:45 EDT 2019


https://github.com/python/cpython/commit/6258c1f7160c1b073a228c9fc49ad5ac894d66ad
commit: 6258c1f7160c1b073a228c9fc49ad5ac894d66ad
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-06-19T20:41:41-07:00
summary:

bpo-37342: Fix the incorrect nb_index's type in typeobj documentation (GH-14241)


It was listed as `binaryfunc`. It should be `unaryfunc`.
(cherry picked from commit bc5caf88ca19b4c8cb9bc912c832b4807a515a60)

Co-authored-by: Hai Shi <shihai1992 at gmail.com>

files:
M Doc/c-api/typeobj.rst

diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index 83fcc5abed70..638fb0c32d78 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -285,7 +285,7 @@ sub-slots
    +---------------------------------------------------------+-----------------------------------+--------------+
    | :c:member:`~PyNumberMethods.nb_inplace_true_divide`     | :c:type:`binaryfunc`              | __truediv__  |
    +---------------------------------------------------------+-----------------------------------+--------------+
-   | :c:member:`~PyNumberMethods.nb_index`                   | :c:type:`binaryfunc`              | __index__    |
+   | :c:member:`~PyNumberMethods.nb_index`                   | :c:type:`unaryfunc`               | __index__    |
    +---------------------------------------------------------+-----------------------------------+--------------+
    | :c:member:`~PyNumberMethods.nb_matrix_multiply`         | :c:type:`binaryfunc`              | __matmul__   |
    |                                                         |                                   | __rmatmul__  |



More information about the Python-checkins mailing list