
May 23, 2017
4:28 p.m.
On Tue, May 23, 2017 at 1:49 PM, Steven D'Aprano <steve@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 +