On Tue, May 23, 2017 at 1:49 PM, Steven D'Aprano <st...@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 -- + Koos Zevenhoven + http://twitter.com/k7hoven + _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/