[Python-Dev] Defining a path protocol

Stephen J. Turnbull stephen at xemacs.org
Thu Apr 7 00:37:48 EDT 2016


Chris Barker writes:

 > which I suppose we do -- there are already other path implimentaitons out
 > there (though at least some are strings :-) )

Even so, their __fspath__ implementation might return syntactically
canonicalized or realpath paths, rather than whatever is input.  If
cached and the path frequently accessed, the realpath implementation
might be a significant win in some applications.



More information about the Python-Dev mailing list