File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55Operating System Utilities
66==========================
77
8+ .. c :function :: PyObject* PyOS_FSPath (PyObject *path)
9+
10+ Return the file system representation for *path *. If the object is a
11+ :class: `str ` or :class: `bytes ` object, then its reference count is
12+ incremented. If the object implements the :class: `os.PathLike ` interface,
13+ then ``type(path).__fspath__() `` is returned. Otherwise :exc: `TypeError ` is
14+ raised and ``NULL `` is returned.
15+
16+ .. versionadded :: 3.6
17+
818
919.. c :function :: int Py_FdIsInteractive (FILE *fp, const char *filename)
1020
Original file line number Diff line number Diff line change @@ -921,6 +921,9 @@ PyNumber_Xor:PyObject*:o2:0:
921921PyObject_AsFileDescriptor:int:::
922922PyObject_AsFileDescriptor:PyObject*:o:0:
923923
924+ PyOS_FSPath:PyObject*::+1:
925+ PyOS_FSPath:PyObject*:path:0:
926+
924927PyObject_Call:PyObject*::+1:
925928PyObject_Call:PyObject*:callable_object:0:
926929PyObject_Call:PyObject*:args:0:
You can’t perform that action at this time.
0 commit comments