I was wondering how to check whether a variable is a class (not an instance!) or not.
I\'ve tried to use the function isinstance(object, class_or_type_or_tuple
isinstance(object, class_or_type_or_tuple
There are some working solutions here already, but here's another one:
>>> import types >>> class Dummy: pass >>> type(Dummy) is types.ClassType True