You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accept Pathlike objects (eg. pathlib.Path) in Py3.6+
PEP-519 (Py3.6+ / PyPy 7.3+) adds a file system path protocol via Object.__fspath__(), and is supported by pathlib/os/open/etc. https://www.python.org/dev/peps/pep-0519/
Wherever we take paths in Python, check for value.__fspath__ to provide Py3.5 compatibility, then call it to get a str/bytes representation. In C, use PyUnicode_FSConverter when parsing function arguments, and PyOS_FSPath() when available.
Adds *_aspath() tests to wherever we seem to accept paths.
0 commit comments