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

Antoine Pitrou antoine at python.org
Wed Apr 6 05:44:30 EDT 2016


Nick Coghlan <ncoghlan <at> gmail.com> writes:
> 
> sys.path, for example.
> 
> That's why I'd actually prefer the implicit conversion protocol to be
> the more explicitly named "__fspath__", with suitable "__fspath__ =
> path" assignments added to DirEntry and pathlib.

That was my preference as well.

> However, I'm also not
> offering to actually *do* the work here, and the casting vote goes to
> the folks pursuing the implementation effort.

Indeed.

Regards

Antoine.




More information about the Python-Dev mailing list