mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-101100: Fix sphinx warnings in c-api/file.rst
(#114546)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
582d95e8bb
commit
01d970c1b8
3 changed files with 15 additions and 4 deletions
|
@ -65,8 +65,13 @@ 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 :c:expr:`PyObject *(\*)(PyObject *path,
|
||||
void *userData)`, where *path* is guaranteed to be :c:type:`PyUnicodeObject`.
|
||||
The handler is a function of type:
|
||||
|
||||
.. c:type:: Py_OpenCodeHookFunction
|
||||
|
||||
Equivalent of :c:expr:`PyObject *(\*)(PyObject *path,
|
||||
void *userData)`, where *path* is guaranteed to be
|
||||
:c:type:`PyUnicodeObject`.
|
||||
|
||||
The *userData* pointer is passed into the hook function. Since hook
|
||||
functions may be called from different runtimes, this pointer should not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue