[Python-Dev] Defining a path protocol
Ethan Furman
ethan at stoneleaf.us
Fri Apr 8 12:30:38 EDT 2016
On 04/08/2016 08:41 AM, Brett Cannon wrote:
> On Fri, 8 Apr 2016 at 08:33 Ethan Furman wrote:
>> Brett previously queried:
>>> Add the method/attribute to str? (I assume so, much like
>>> __index__() is on int, but I have not seen it explicitly
>>> stated so I would rather clarify it)
>
>> What will this do? Return a Path or a str? I don't think
>> we need either.
>
> When I brought this up it was to return self.
Okay, thanks.
> Chris Angelico and I have been asked by Guido to work together to come
> up with a proposal after all the discussions are finished and it will
> most likely be a patch to the pathlib PEP.
Cool. I wasn't looking forward to that part.
--
~Ethan~
More information about the Python-Dev
mailing list