def setAllArgs(obj, argdict):
 xmlstore = isinstance(obj, XMLBuildable)
 for n in list(argdict.keys()):
  if hasattr(obj, n):
   setattr(obj, n, argdict[n])
   if xmlstore:
    obj.argdict[n] = argdict[n]
  else:
   print(('Warning: parameter name', n, 'not found!'))
   if xmlstore:
    if (not hasattr(obj, '_unknown_argdict')):
     obj._unknown_argdict = {}
    obj._unknown_argdict[n] = argdict[n]

def setAllArgs ( obj , argdict ) : xmlstore = isinstance ( obj , XMLBuildable ) for n in list ( argdict . keys ( ) ) : if hasattr ( obj , n ) : setattr ( obj , n , argdict [ n ] ) if xmlstore : obj . argdict [ n ] = argdict [ n ] else : print ( ( 'Warning: parameter name' , n , 'not found!' ) ) if xmlstore : if ( not hasattr ( obj , '_unknown_argdict' ) ) : obj . _unknown_argdict = { } obj . _unknown_argdict [ n ] = argdict [ n ]
set all those internal variables which have the same name than an entry in the given objects dictionary .