classobj?

Venky venky at nospam.com
Mon Feb 26 21:52:03 EST 2007


...
> 
> 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.



More information about the Python-list mailing list