[Python-Dev] file system path protocol PEP (original) (raw)
Ethan Furman ethan at stoneleaf.us
Thu May 12 13:27:21 EDT 2016
- Previous message (by thread): [Python-Dev] file system path protocol PEP
- Next message (by thread): [Python-Dev] file system path protocol PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 05/12/2016 10:21 AM, Sven R. Kunze wrote:
On 12.05.2016 18:56, Ethan Furman wrote:
On 05/12/2016 09:26 AM, Sven R. Kunze wrote:
str and bytes will receive the fspath attribute when this PEP is accepted?
No, they won't. The fspath protocol will reduce the rich path object down to a str/bytes object. Would this make the implementation of os.fspath simpler?
Maybe, but a bad idea for two reasons:
- Reducing a str to the exact same str is silly; and, more importantly
- not every str/bytes is a path
--
Ethan
- Previous message (by thread): [Python-Dev] file system path protocol PEP
- Next message (by thread): [Python-Dev] file system path protocol PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]