def update ( self , * * kwargs ) : for key , value in kwargs . items ( ) : setattr ( self , key , value )
python function argurments kwargs setattr
Creates or updates a property for the instance for each parameter .
def update(self, **kwargs):
    """Creates or updates a property for the instance for each parameter."""
    for key, value in kwargs.items():
      setattr(self, key, value)