Is there any way to check if object is an instance of a class? Not an instance of a concrete class, but an instance of any class.
I can check that an object is not a class, not a module, not a traceback etc., but I am interested in a simple solution.
It's a bit hard to tell what you want, but perhaps inspect.isclass(val) is what you are looking for?
Python check instances of classes