[Python-Dev] Pathlib enhancements - acceptable inputs and outputs for fspath and os.fspath() (original) (raw)
Zachary Ware zachary.ware+pydev at gmail.com
Mon Apr 11 12:32:29 EDT 2016
- Previous message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Next message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
-- Zach
- Previous message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Next message (by thread): [Python-Dev] Pathlib enhancements - acceptable inputs and outputs for __fspath__ and os.fspath()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]