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 5b52a4e commit e6a53feCopy full SHA for e6a53fe
Doc/c-api/sys.rst
@@ -221,7 +221,8 @@ Operating System Utilities
221
Similar to :c:func:`!fopen`, but *path* is a Python object and
222
an exception is set on error.
223
224
- *path* must be a :class:`str` object or a :class:`bytes` object.
+ *path* must be a :class:`str` object, a :class:`bytes` object,
225
+ or a :term:`path-like object`.
226
227
On success, return the new file pointer.
228
On error, set an exception and return ``NULL``.
0 commit comments