Message182267
Ah, I think I see your point - because __init_class__ is supposed to be a class method on instances of the metaclass, the anchor needs to be on object (the highest level instance of the default metaclass), not on type if we don't want super to behave strangely?
I think that's a valid conclusion (albeit a very subtle difference relative to an ordinary method on type), and compared to the tapdancing we do in __new__ and __init__ to help them be valid anchors for cooperative multiple inheritance, adding object.__init_class__ is a relatively minor thing.
If you wanted to propose a patch to the PEP as well, that would be great. |
|
Date |
User |
Action |
Args |
2013-02-17 11:50:24 | ncoghlan | set | recipients:
+ ncoghlan, ezio.melotti, flox, daniel.urban |
2013-02-17 11:50:24 | ncoghlan | set | messageid: <1361101824.17.0.00808700693683.issue17044@psf.upfronthosting.co.za> |
2013-02-17 11:50:24 | ncoghlan | link | issue17044 messages |
2013-02-17 11:50:23 | ncoghlan | create | |
|