function that return class of an object
type()
function that return class of an object
type()
attribute of an object that contains class
__class__
a.__class__.__class__
attribute of an object that contains class
__class__
a.__class__.__class__
function that returns a list of attributes
dir(object)
get attribute using function
getattr(object, attribute_name)
if attribute exists
hasattr(object, attribute_name)
dictionary of global variables
globals()
dictionary of local variables
locals()
python library for introspection
inspect