Skip to content

Commit e6a53fe

Browse files
committed
Update doc for path-like object
1 parent 5b52a4e commit e6a53fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/sys.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ Operating System Utilities
221221
Similar to :c:func:`!fopen`, but *path* is a Python object and
222222
an exception is set on error.
223223
224-
*path* must be a :class:`str` object or a :class:`bytes` object.
224+
*path* must be a :class:`str` object, a :class:`bytes` object,
225+
or a :term:`path-like object`.
225226
226227
On success, return the new file pointer.
227228
On error, set an exception and return ``NULL``.

0 commit comments

Comments
 (0)