[Python-Dev] Defining a path protocol

Ethan Furman ethan at stoneleaf.us
Wed Apr 6 19:37:11 EDT 2016


On 04/06/2016 04:26 PM, Brett Cannon wrote:
> On Wed, 6 Apr 2016 at 16:25 Nathaniel Smith wrote:

>> For __index__ the "built-in" is:
>>
>> from operator import index
>
> Which suggests perhaps we should have pathlib.fspath() instead of a
> built-in.

+1

--
~Ethan~


More information about the Python-Dev mailing list