def password_changed(password, user=None, password_validators=None):
 if (password_validators is None):
  password_validators = get_default_password_validators()
 for validator in password_validators:
  password_changed = getattr(validator, 'password_changed', (lambda *a: None))
  password_changed(password, user)

def password_changed ( password , user = None , password_validators = None ) : if ( password_validators is None ) : password_validators = get_default_password_validators ( ) for validator in password_validators : password_changed = getattr ( validator , 'password_changed' , ( lambda * a : None ) ) password_changed ( password , user )
inform all validators that have implemented a password_changed() method that the password has been changed .