We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi.
Python 3.6 has os.fspath which is supposed to be the standard way to get a file path from a PathLike object, e.g., file objects. https://docs.python.org/3/library/os.html?highlight=os%20fspath#os.fspath
os.fspath
In Python 2 and earlier Python 3s, the way to do it is file_obj.name.
file_obj.name
Request: add fspath and PathLike to six.py. There is an official implementation that could be copied: https://github.com/python/cpython/blob/master/Lib/os.py#L1025
fspath
PathLike
six.py
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi.
Python 3.6 has
os.fspath
which is supposed to be the standard way to get a file path from a PathLike object, e.g., file objects.https://docs.python.org/3/library/os.html?highlight=os%20fspath#os.fspath
In Python 2 and earlier Python 3s, the way to do it is
file_obj.name
.Request: add
fspath
andPathLike
tosix.py
. There is an official implementation that could be copied:https://github.com/python/cpython/blob/master/Lib/os.py#L1025
The text was updated successfully, but these errors were encountered: