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
>>> class X(object): ... pass ... >>> type(X) >>> isinstance(X,type) True