key_in_dict

Contents

key_in_dict#

eoio.utils.dict_tools.key_in_dict(test_dict, other_dict) bool[source]#

Return whether a key is jointly present in two input dictionaries.

Note: does not search through nested dictionary keys

Parameters:
  • test_dict – first dictionary

  • other_dict – second dictionary

Returns:

True when any key is shared, otherwise False.