solving the metaclass conflict
imbosol at aerojockey.com
Sun Jun 8 20:14:23 CEST 2003
mertz at gnosis.cx (David Mertz) wrote in message news:<mailman.1055044454.21616.python-list at python.org>...
> |* Handle multi-level metaclasses (e.g. metametaclasses)
> This I don't get at all. I've never used a metametaclass (and doubt I
> will). But even assuming I did, the type() of a metaclass resolves to
> such a metametaclass, and the proposed code should work fine.
> Is something else intended here?
Just guessing. A has metaclass X which has metaclass P. B has
metaclass Y which has metaclass Q. You want to create class C(A,B).
Your recipe tries to create class Z(X,Y) to serve as the metaclass of
C, but it can't do that because X and Y have different metaclasses
More information about the Python-list