]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix `c-api/file.rst` indexes (GH-114608) (#124786)
authorsobolevn <mail@sobolevn.me>
Mon, 30 Sep 2024 13:50:33 +0000 (16:50 +0300)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2024 13:50:33 +0000 (13:50 +0000)
(cherry picked from commit 23fb9f0777b054526b3b32f58e60b2a03132bf45)

Doc/c-api/file.rst

index c4f535920ac2d0a66401511acdb3f20daea0886b..e9019a0d500f7e50c45ce6f502d9c3b5a0a19895 100644 (file)
@@ -65,9 +65,10 @@ the :mod:`io` APIs instead.
    Overrides the normal behavior of :func:`io.open_code` to pass its parameter
    through the provided handler.
 
-   The handler is a function of type:
+   The *handler* is a function of type:
 
-   .. c:type:: Py_OpenCodeHookFunction
+   .. c:namespace:: NULL
+   .. c:type:: PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *)
 
       Equivalent of :c:expr:`PyObject *(\*)(PyObject *path,
       void *userData)`, where *path* is guaranteed to be