def update_info_dict(oldInfoDict, newInfoDict):
 for (k, v) in newInfoDict.items():
  if any((isinstance(v, t) for t in (tuple, list, dict))):
   pass
  elif ((oldInfoDict.get(k) is None) or (v not in (None, '', '0', 0))):
   oldInfoDict[k] = v

def update_info_dict ( oldInfoDict , newInfoDict ) : for ( k , v ) in newInfoDict . items ( ) : if any ( ( isinstance ( v , t ) for t in ( tuple , list , dict ) ) ) : pass elif ( ( oldInfoDict . get ( k ) is None ) or ( v not in ( None , '' , '0' , 0 ) ) ) : oldInfoDict [ k ] = v
only normal values will be updated here .