Possible bug in "metaclass resolution order" ?
Pedro Werneck
pedro.werneck at terra.com.br
Sun Sep 18 20:17:17 EDT 2005
On 18 Sep 2005 12:58:22 -0700
"Simon Percivall" <percivall at gmail.com> wrote:
> I definitely think that it's the intended behaviour: the example shows
> how and why it works; and I definitely agree that it should be
> documented better.
Yes. I finally understood the decision and now I agree it's not a bug,
it's the intended behaviour. If the explicit class is part of the
hierarchy but not a subclass of base classes metaclass, it will search
for the more specialized metaclass and use it, since it will have
anything the class need and conforms to the metaclass I set explicitly.
I will change the bug report and add some of the suggested
documentation.
Thanks
--
Pedro Werneck
More information about the Python-list
mailing list