Message355890
We started down this path in https://bugs.python.org/issue31961 but had to revert part of that before 3.7 as the implementation was incomplete making it inconsistent across platforms. https://github.com/python/cpython/pull/4329.
Specifically accepting PathLike objects within the args list hasn't been ruled out...
There is at least one question about behavior though, is str() called when running on posix systems or bytes() (bytes uses fsencode)?
Or does what gets called depend on the specific sub-type of the path vs the current platform?
Example scenario: if you're processing a PureWindowsPath on a posix system and passing that to a child process, sending that through os.fsencode would presumably be the wrong choice... |
|
Date |
User |
Action |
Args |
2019-11-03 08:13:13 | gregory.p.smith | set | recipients:
+ gregory.p.smith |
2019-11-03 08:13:12 | gregory.p.smith | set | messageid: <1572768792.96.0.63320860714.issue38670@roundup.psfhosted.org> |
2019-11-03 08:13:12 | gregory.p.smith | link | issue38670 messages |
2019-11-03 08:13:12 | gregory.p.smith | create | |
|