File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -60,21 +60,19 @@ the :mod:`io` APIs instead.
6060 raised if the end of the file is reached immediately.
6161
6262
63- .. c :type :: PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *)
64-
65- Equivalent of :c:expr: `PyObject *(\* )(PyObject *path,
66- void *userData) `, where *path * is guaranteed to be
67- :c:type: `PyUnicodeObject `.
68-
69- .. versionadded :: 3.8
70-
71-
7263.. c :function :: int PyFile_SetOpenCodeHook (Py_OpenCodeHookFunction handler)
7364
7465 Overrides the normal behavior of :func:`io.open_code` to pass its parameter
7566 through the provided handler.
7667
77- The *handler* is a function of type :c:type:`Py_OpenCodeHookFunction`.
68+ The *handler* is a function of type:
69+
70+ .. c:namespace:: NULL
71+ .. c:type:: PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *)
72+
73+ Equivalent of :c:expr: `PyObject *(\* )(PyObject *path,
74+ void *userData) `, where *path * is guaranteed to be
75+ :c:type: `PyUnicodeObject `.
7876
7977 The *userData * pointer is passed into the hook function. Since hook
8078 functions may be called from different runtimes, this pointer should not
You can’t perform that action at this time.
0 commit comments