[Python-ideas] Dunder method to make object str-like

Nathaniel Smith njs at pobox.com
Thu Apr 7 17:50:30 EDT 2016


On Apr 7, 2016 2:32 PM, "Brett Cannon" <brett at python.org> wrote:
>
[...]
>> Frankly, if it wasn't for the fact that you have stated that you'll
>> add support for the protocol to your path library, I'd be surprised if
>> *any* 3rd party code changed as a result of this discussion. There's
>> been no comment from the authors of path.py or pylib (the only other 2
>> path objects I know of). And the only comments I've heard from authors
>> of libraries that consume paths is "I don't see any reason why I'd
>> bother". So as long as you're happy with the final form of the
>> proposal, I see little reason to worry about how other 3rd party code
>> might use it.
>
>
> I'm trying to be a bit more optimistic on the uptake. :)

If data points are useful, numpy just merged a PR for supporting pathlib
paths:
   https://github.com/numpy/numpy/pull/6660

It's a bit awkward given the current api, but someone did care enough to
take the trouble.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160407/21aa0d0d/attachment.html>


More information about the Python-ideas mailing list