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.

Title: `pathlib.Path.__bytes__()` calls `os.fsencode()` without using accessor
Type: Stage: resolved
Components: Versions:
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: barneygale
Priority: normal Keywords: patch

Created on 2020-03-08 06:10 by barneygale, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 18842 closed barneygale, 2020-03-08 06:18
Messages (2)
msg363638 - (view) Author: Barney Gale (barneygale) * Date: 2020-03-08 06:10
`pathlib.Path.__bytes__()` calls `os.fsencode()` without using path's accessor. To properly isolate Path objects from the underlying local filesystem, this should be routed via the accessor object.
msg363844 - (view) Author: Barney Gale (barneygale) * Date: 2020-03-10 20:44
Closing after @pitrou clarified the meaning of __fspath__() here:
Date User Action Args
2022-04-11 14:59:27adminsetgithub: 84081
2020-03-10 20:44:30barneygalesetstatus: open -> closed
resolution: not a bug
messages: + msg363844

stage: patch review -> resolved
2020-03-08 06:18:38barneygalesetkeywords: + patch
stage: patch review
pull_requests: + pull_request18199
2020-03-08 06:10:31barneygalecreate