[Python-ideas] A (meta)class algebra

drekin at gmail.com drekin at gmail.com
Sat Feb 14 15:58:30 CET 2015


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



More information about the Python-ideas mailing list