Modules/posixmodule/utils

Search:
Group by:
Source   Edit  

Procs

proc PyOS_FSPath(path: PyObject): PyObject {....raises: [], tags: [RootEffect],
    forbids: [].}

Return the file system path representation of the object.

If the object is str or bytes, then allow it to pass through with an incremented refcount. If the object defines __fspath__(), then return the result of that method. All other types raise a TypeError.

Source   Edit