[Python-ideas] A (meta)class algebra (original) (raw)
drekin at gmail.com drekin at gmail.com
Sat Feb 14 15:58:30 CET 2015
- Previous message: [Python-ideas] A (meta)class algebra
- Next message: [Python-ideas] Namespace creation with syntax short form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
note that if A is class with metaclass MA and B a class with metaclass MB and you want Python to get combined metaclass as MA + MB when class C(A, B) is being created, the add method shouldn't be defined on MA itself but on its class, i.e. on a meta meta class.
Regards, Drekin
- Previous message: [Python-ideas] A (meta)class algebra
- Next message: [Python-ideas] Namespace creation with syntax short form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]