Skip to content

Commit 145d2d2

Browse files
Update Doc/c-api/file.rst
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 598c259 commit 145d2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ the :mod:`io` APIs instead.
9595
9696
.. c:function:: PyObject *PyFile_OpenCodeObject(PyObject *path)
9797
98-
Open *path* and read the text. *path* must be a Python :class:`str`
98+
Open *path* with the mode ``'rb'``. *path* must be a Python :class:`str`
9999
object. The behavior of this function may be overridden by
100100
:c:func:`PyFile_SetOpenCodeHook` to allow for some preprocessing of the
101101
text.

0 commit comments

Comments
 (0)