def _diff_dict(orig, new):
 result = {k: ['-'] for k in (set(orig.keys()) - set(new.keys()))}
 for (key, value) in new.items():
  if ((key not in orig) or (value != orig[key])):
   result[key] = ['+', value]
 return result

def _diff_dict ( orig , new ) : result = { k : [ '-' ] for k in ( set ( orig . keys ( ) ) - set ( new . keys ( ) ) ) } for ( key , value ) in new . items ( ) : if ( ( key not in orig ) or ( value != orig [ key ] ) ) : result [ key ] = [ '+' , value ] return result
return a dict describing how to change orig to new .