how to find out if an object is a class?
lists at cheimes.de
Fri Aug 8 15:04:56 CEST 2008
> Pardon me for most likely a dummy question but how do I find out if an
> object is a class?
For God's sake don't reinvent the wheel! The 'inspect' module (part of
the Python standard library) has a functions isclass(). It does the
proper tests for new style and old style classes.
More information about the Python-list