[Zope-dev] Metaclass resolution for InterfaceClass

Laurence Rowe l at lrowe.co.uk
Wed Jun 1 08:41:55 EDT 2011


On 1 May 2011 20:28, Laurence Rowe <l at 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


More information about the Zope-Dev mailing list