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.
Yes. Accordingly, you can use hasattr(obj, '__dict__') or obj is not callable(obj).
Python check instances of classes