Extend the "Don Beaudry hack" with "Guido's corollary" -- if the base
class has a __class__ attribute, call that to create the new class. This allows us to write metaclasses purely in C!
Showing
Please register or sign in to comment
class has a __class__ attribute, call that to create the new class. This allows us to write metaclasses purely in C!