[Python-ideas] tweaking the file system path protocol

Koos Zevenhoven k7hoven at gmail.com
Tue May 23 12:28:44 EDT 2017

On Tue, May 23, 2017 at 1:49 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> How about simplifying the implementation of fspath by giving str and
> bytes a __fspath__ method that returns str(self) or bytes(self)?

The compatiblity issue I mention in the other email I just sent as a
response to the OP will appear if a subclass returns something other
than str(self) or bytes(self).


+ Koos Zevenhoven + http://twitter.com/k7hoven +

More information about the Python-ideas mailing list