def iter_default_settings():
 for name in dir(default_settings):
  if name.isupper():
   (yield (name, getattr(default_settings, name)))

def iter_default_settings ( ) : for name in dir ( default_settings ) : if name . isupper ( ) : ( yield ( name , getattr ( default_settings , name ) ) )
return the default settings as an iterator of tuples .