Re: [Python-Dev] PEP 544 and dunder methods

2019-05-21 Thread Eric Snow
On Tue, May 21, 2019, 12:00 Guido van Rossum wrote: > My guess, without delving into the implementation, is that a Protocol is > *always* about the class, and that this is entirely a red herring. > I think you're right. It makes sense. I must have missed it somehow. FYI, some protocols (like

Re: [Python-Dev] PEP 544 and dunder methods

2019-05-21 Thread Guido van Rossum
(I did see your post in the moderation queue and let it through -- however the mypy team, which would be most responsible for answering your question, has been busy fighting some fires.) I'm trying to understand what the PEP is saying and how you're interpreting, and I'm not getting very far. I kn