[Python-ideas] tweaking the file system path protocol

Juancarlo Añez apalala at gmail.com
Sun May 28 18:44:23 EDT 2017

On Sun, May 28, 2017 at 5:33 PM, Wolfgang Maier <
wolfgang.maier at biologie.uni-freiburg.de> wrote:

> With __fspath__ being a method that can return whatever its author sees
> fit, calling str to get a path from an arbitrary object is just as wrong as
> it always was - it will work for pathlib.Path objects and might or might
> not work for some other types. Importantly, this has nothing to do with
> this proposal, but is in the nature of the protocol as it is defined *now*.


Juancarlo *Añez*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170528/67eb819d/attachment.html>

More information about the Python-ideas mailing list