Berker Peksag added the comment:
It looks like the fspath protocol support has already been implemented in
b64f83d6ff24.
--
nosy: +berker.peksag
resolution: -> out of date
stage: -> resolved
status: open -> closed
type: -> enhancement
___
Python
Jelle Zijlstra added the comment:
I wrote the patch assuming that the error messages would be changed in
accordance with issue27232. Let's put this on hold until that is resolved.
--
dependencies: +os.fspath() should not use repr() on error
___
SilentGhost added the comment:
There seems to be an issue with your patch, it does apply cleanly when doing
that manually, but Rietveld doesn't like it. The changes in Lib/posixpath.py
and Lib/test/test_posixpath.py don't show up.
--
nosy: +SilentGhost
Jelle Zijlstra added the comment:
This patch adds a number of os.fspath calls to the posixpath.py module. I
didn't duplicate all tests to check PathLike objects in addition str/bytes,
because that seemed excessive. Instead I tried to ensure that each function has
at least one test checking
New submission from Jelle Zijlstra:
Various functions in posixpath.py need to accept os.PathLike objects. I will
submit a patch.
--
assignee: Jelle Zijlstra
components: Library (Lib)
messages: 267428
nosy: Jelle Zijlstra, ethan.furman
priority: normal
severity: normal
status: open