[Python-Dev] When should pathlib stop being provisional?

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 6 18:59:25 EDT 2016


Nick Coghlan wrote:
> I'd missed the existing precedent in DirEntry.path, so simply taking
> that and running with it sounds good to me.

It's not quite the same thing, though. DirEntry.path takes
something that is not a path (a DirEntry instance) and
gives you a path representing it, so the name makes sense.

But a Path instance is already "a path", so Path.path
is weird. Path.str would make more sense.

-- 
Greg


More information about the Python-Dev mailing list