Determining if an object is a class?

infidel saint.infidel at gmail.com
Wed Jul 12 17:05:07 EDT 2006


>>> import types
>>> class OldStyle: pass
... 
>>> type(OldStyle) == types.ClassType
True




More information about the Python-list mailing list