__dict__ in python classes

__dict__ can be used on any object to find out the object parameters (not the class variables).

class MyClass:
   
   my_class_variable1 = "0"

   def __init__(self, instrument="my_instrument", facility="my_facility"):
      self.instrument = instrument
      self.facility = facility
>>> my_object = MyClass()
>>> my_object.item1 = "item1"
>>> my_object.__dict__
{'facility': 'my_facility', 'instrument': 'my_instrument', 'item1': 'item1'}

But one will notice that my_class_variable1 is not listed in the dictionary!