magicmethods icon indicating copy to clipboard operation
magicmethods copied to clipboard

__fspath__

Open westurner opened this issue 6 years ago • 0 comments

New in version 3.6.

abstractmethod __fspath__() Return the file system path representation of the object.

The method should only return a str or bytes object, with the preference being for str. https://docs.python.org/3/library/os.html#os.PathLike.fspath

westurner avatar Feb 21 '19 14:02 westurner