[New-bugs-announce] [issue39900] `pathlib.Path.__bytes__()` calls `os.fsencode()` without using accessor

Barney Gale report at bugs.python.org
Sun Mar 8 01:10:31 EST 2020


New submission from Barney Gale <barney.gale at gmail.com>:

`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.

----------
messages: 363638
nosy: barneygale
priority: normal
severity: normal
status: open
title: `pathlib.Path.__bytes__()` calls `os.fsencode()` without using accessor

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39900>
_______________________________________


More information about the New-bugs-announce mailing list