solving the metaclass conflict
Carl Banks
imbosol at aerojockey.com
Sun Jun 8 14:14:23 EDT 2003
More information about the Python-list mailing list
Sun Jun 8 14:14:23 EDT 2003
- Previous message (by thread): solving the metaclass conflict
- Next message (by thread): solving the metaclass conflict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 themselves. -- CARL BANKS
- Previous message (by thread): solving the metaclass conflict
- Next message (by thread): solving the metaclass conflict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list