We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598c259 commit 145d2d2Copy full SHA for 145d2d2
Doc/c-api/file.rst
@@ -95,7 +95,7 @@ the :mod:`io` APIs instead.
95
96
.. c:function:: PyObject *PyFile_OpenCodeObject(PyObject *path)
97
98
- Open *path* and read the text. *path* must be a Python :class:`str`
+ Open *path* with the mode ``'rb'``. *path* must be a Python :class:`str`
99
object. The behavior of this function may be overridden by
100
:c:func:`PyFile_SetOpenCodeHook` to allow for some preprocessing of the
101
text.
0 commit comments