How-to articles, tricks, and solutions about INTROSPECTION
Getting the class name of an instance
To get the class name of an instance in Python, you can use the __class__ attribute of the object.
Is there a built-in function to print all the current properties and values of an object?
In Python, you can use the built-in function vars() to print the properties and values of an object.