[Python-ideas] Dunder method to make object str-like
Nikolaus Rath
Nikolaus at rath.org
Tue Apr 12 13:17:52 EDT 2016
On Apr 11 2016, Ethan Furman <ethan-gcWI5d7PMXnvaiG9KC9N7Q at public.gmane.org> wrote:
>> As far as I can see, implementing a protocol instead of adding a few
>> isinstance checks is more likely to make the life of a CPython developer
>> harder than easier.
>
> I disagree. And the protocol idea was not mine, so apparently other
> core-devs also disagree (or think it's worth it, regardless).
I haven't found any email explaining why a protocol would make things
easier than the isinstance() approach (and I read most of the threads
both here and on -dev), so I was assuming that the core-devs in question
don't disagree but haven't considered the second approach.
But this will be my last mail advocating it. If there's still no
interest, then there probably is a reason for it :-).
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
More information about the Python-ideas
mailing list