This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients gregory.p.smith
Date 2019-11-03.08:13:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572768792.96.0.63320860714.issue38670@roundup.psfhosted.org>
In-reply-to
Content
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...
History
Date User Action Args
2019-11-03 08:13:13gregory.p.smithsetrecipients: + gregory.p.smith
2019-11-03 08:13:12gregory.p.smithsetmessageid: <1572768792.96.0.63320860714.issue38670@roundup.psfhosted.org>
2019-11-03 08:13:12gregory.p.smithlinkissue38670 messages
2019-11-03 08:13:12gregory.p.smithcreate