szczepiq wrote:
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.
import inspect inspect.isclass(something) Christian -- http://mail.python.org/mailman/listinfo/python-list