[Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
zachary.ware+pydev at gmail.com
Mon Apr 11 12:32:29 EDT 2016
On Mon, Apr 11, 2016 at 11:18 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
> If those examples are anywhere close to accurate, an fspath protocol that
> supported both bytes and str seems a lot easier to work with.
But why are you working with bytes paths in the first place? Where did
you get them from, and why couldn't you decode them at that boundary?
In 7ish years of working with Python (almost exclusively Python 3) on
Windows and UNIX, I have never used bytes paths on any platform.
More information about the Python-Dev