pop_vals

Contents

pop_vals#

eoio.utils.dict_tools.pop_vals(test_dict, key_list, d)[source]#

Remove specified key-value pairs from dictionary and assign to a second dictionary

Parameters:
  • test_dict – dictionary from which to remove the values from

  • key_list – keys of the values you wish to transfer to the second dictionary

  • d – second dictionary in which key-value pairs will be transferred