[Python-ideas] Better stdlib support for Path objects
Ed Kellett
edk141 at gmail.com
Tue Oct 7 15:45:59 CEST 2014
On 7 October 2014 14:37, Barry Warsaw <barry at python.org> wrote:
> What would __strpath__ do that __str__ wouldn't do? Or do you think it's
> better to explicitly disallow str-like objects that aren't path objects?
What is a str-like object? A lot of objects are acceptable to str();
most of them aren't "str-like" in any reasonable sense of the term
(e.g. function, int), and probably shouldn't be acceptable as paths.
edk
More information about the Python-ideas
mailing list