]> granicus.if.org Git - python/commitdiff
bpo-29917: DOC: Remove link from PyMethodDef (#890) (#896)
authorSenthil Kumaran <skumaran@gatech.edu>
Thu, 30 Mar 2017 05:29:12 +0000 (22:29 -0700)
committerGitHub <noreply@github.com>
Thu, 30 Mar 2017 05:29:12 +0000 (22:29 -0700)
(cherry picked from commit c3c7ef088583cc12bd218138036d1edb6de9c63f)

Doc/c-api/structures.rst

index fdee5f9fa0e17b3a955ef62debe1d0be86968beb..782cec29d836244f52c42788719177623373a315 100644 (file)
@@ -265,7 +265,7 @@ definition with the same method name.
    +==================+=============+===============================+
    | :attr:`name`     | char \*     | name of the member            |
    +------------------+-------------+-------------------------------+
-   | :attr:`type`     | int         | the type of the member in the |
+   | :attr:`!type`    | int         | the type of the member in the |
    |                  |             | C struct                      |
    +------------------+-------------+-------------------------------+
    | :attr:`offset`   | Py_ssize_t  | the offset in bytes that the  |
@@ -280,7 +280,7 @@ definition with the same method name.
    |                  |             | docstring                     |
    +------------------+-------------+-------------------------------+
 
-   :attr:`type` can be one of many ``T_`` macros corresponding to various C
+   :attr:`!type` can be one of many ``T_`` macros corresponding to various C
    types.  When the member is accessed in Python, it will be converted to the
    equivalent Python type.