1 Jun
2011
1 Jun
'11
12:41 p.m.
On 1 May 2011 20:28, Laurence Rowe <l@lrowe.co.uk> wrote:
While experimenting with my InterfaceClass subclass I noticed that it was only being used when it was specified as the first of the bases. I believe this is because InterfaceClass is not a subclass of ``type``, so the normal metaclass derivation logic is not applied. The attached patch implements that logic in InterfaceClass.__new__, picking from the base metaclasses that metaclass which subclasses all other base metaclasses.
I've reported this as https://bugs.launchpad.net/zope.interface/+bug/791218 so it does not get lost. Laurence