[Python-ideas] Dunder method to make object str-like
Ethan Furman
ethan at stoneleaf.us
Thu Apr 7 18:09:01 EDT 2016
On 04/07/2016 02:26 PM, Brett Cannon wrote:
> Yep, you're right. I was never worried about making the stdlib work
> since that's a fully controlled environment that we can update at once.
> What I'm worried about is any third-party library that has an API that
> takes a path as an argument that may need to be updated to support
> pathlib -- or any other path library -- and doesn't want to directly
> rely on Python 3.6 for support.
Ah, I understand (finally!).
Okay, let's go with the protocol then. If it makes sense to also have
an ABC I'm fine with that.
--
~Ethan~
More information about the Python-ideas
mailing list