eta.util.general.dict_rem_val

dict_rem_val(dct, k, val)[source]

Safe version of dict remove that removes val from the list stored at key (or pops the key if it stores an atom).