[Python-Dev] file system path protocol PEP (original) (raw)

Nikolaus Rath Nikolaus at rath.org
Wed May 11 17:28:31 EDT 2016


On May 11 2016, Brett Cannon <brett at python.org> wrote:

This PEP proposes a protocol for classes which represent a file system path to be able to provide a str or bytes representation. [...]

As I said before, to me this seems like a lot of effort for a very specific use-case. So let me put forward two hypothetical scenarios to better understand your position:

Do you think you would you be in favor of adding these protocols to the stdlib/languange reference as well? If not, what's the crucial difference to file system paths?

Thanks, -Nikolaus

-- GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

         »Time flies like an arrow, fruit flies like a Banana.«


More information about the Python-Dev mailing list