RE: customizing metaclass constructed classes

2005-02-15 Thread Robert Brewer
Robin Becker wrote: I have a set of classes for database access which are constructed using a special metaclass and base class. so in the base module #base.py class M(type): def __init__(cls, name, bases, dict): super(M, cls).__init__(name, bases, dict) for f in

Re: customizing metaclass constructed classes

2005-02-15 Thread Robin Becker
Robert Brewer wrote: ... .. You *are* using a language with callable functions, right? ;) #base.py def create_special_property(cls, f): # create special property based on f class M(type): def __init__(cls, name, bases, dict): super(M, cls).__init__(name, bases, dict)