... > > Do you mean that you want to add it to globals()? > > globals()['SomeClass'] = cl > > myinst = SomeClass() > print isinstance(myinst, SomeClass) > print isinstance(myinst, BaseClass) > > -- > Hope this helps, > Steven > > > Thanks. That's what I was looking for.