parameters: (self, old_dict, new_dict)
return_statement: return diff_dict
docstring: Generate a dictionary showing diffs between old_dict and new_dict.
          Any entries which are identical across them will be left out.
docstring_summary: Generate a dictionary showing diffs between old_dict and new_dict.
          Any entries which are identical across them will be left out.
docstring_tokens: Generate a dictionary showing diffs between old_dict and new_dict . Any entries which are identical across them will be left out .
function: def _DictionaryDiff(self, old_dict, new_dict):
          """Generate a dictionary showing diffs between old_dict and new_dict.
          Any entries which are identical across them will be left out."""
          diff_dict = {}
          all_keys = set(old_dict.keys() + new_dict.keys())
          for key in all_keys:
              if old_dict.get(key) != new_dict.get(key):
                  new_entry = {}
                  new_entry['old'] = old_dict.get(key)
                  new_entry['new'] = new_dict.get(key)
                  diff_dict[key] = new_entry
          return diff_dict
function_tokens: def _DictionaryDiff ( self , old_dict , new_dict ) : diff_dict = { } all_keys = set ( old_dict . keys ( ) + new_dict . keys ( ) ) for key in all_keys : if old_dict . get ( key ) != new_dict . get ( key ) : new_entry = { } new_entry [ 'old' ] = old_dict . get ( key ) new_entry [ 'new' ] = new_dict . get ( key ) diff_dict [ key ] = new_entry return diff_dict