Guido van Rossum added the comment: In response to Serhiy's comment regarding __copy__ etc.: while the distinction is somewhat unfortunate, I think it's too late to make this more consistent. I think it's fine that the special methods used by copy and pickle protocols behave somewhat differently -- that's a totally different area anyways (and not directly supported by the core language). In contrast, __hash__, __iter__, __contains__, __reversed__, __iadd__ etc. are much more core to the language (representing either builtin functions or operations). Plus here we really need a way to signal the difference between "not defined here so fall back on either a superclass or a different protocol" and "defined here as not existing so cause an error when used". So I don't think there's anything actionable here.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25958> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com