[Python-ideas] tweaking the file system path protocol
Koos Zevenhoven
k7hoven at gmail.com
Tue May 23 14:22:08 EDT 2017
On Tue, May 23, 2017 at 7:53 PM, Wolfgang Maier
<wolfgang.maier at biologie.uni-freiburg.de> wrote:
>
> Ah, sorry, I misunderstood what you were trying to say, but now I'm getting
> it! subclasses of str and bytes were of course usable as path arguments
> before simply because they were subclasses of them. Now they would be picked
> up based on their __fspath__ method, but old versions of Python executing
> code using them would still use them directly. Have to think about this one
> a bit, but thanks for pointing it out.
>
Yes, this is exactly what I meant. I noticed I had left out some of
the details of the reasoning, sorry. I tried to fix that in my
response to Steven.
— Koos
--
+ Koos Zevenhoven + http://twitter.com/k7hoven +
More information about the Python-ideas
mailing list