"David Coffin" <dcoffin at gmail.com> wrote in message news:95d1d5660711290359s40274b40tb84415cc006c0001 at mail.gmail.com... | Is it possible to add an attribute to a new style class where the name of | that attribute is determined at runtime? >>> class C(object): pass >>> setattr(C,'a',1) >>> C.a 1 And hasattr, getattr work also.