Nick Coghlan added the comment:

Oh, yes, now I remember - it *has* to be that way, otherwise upcalls from 
subclass __new__ methods don't do the right thing (int.__new__(MyInt), etc), 
just as you need to pass the current type in explicitly for cooperative super 
calls. This is perhaps *the* most obscure design detail of the type system that 
I'm aware of - I have to go scratching around in my brain for the reason every 
time it comes up, which is fortunately almost never :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20189>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to