Skip to content
Snippets Groups Projects
Commit 39a87f3b authored by lukas leufen's avatar lukas leufen
Browse files

new helper dict_pop (already available in other branches)

parent 994df99b
No related branches found
No related tags found
2 merge requests!59Develop,!54Lukas issue061 refac seperate input target vars
......@@ -208,3 +208,8 @@ def list_pop(list_full: list, pop_items):
list_pop = list_full.copy()
list_pop.remove(pop_items[0])
return list_pop
def dict_pop(dict_orig: Dict, pop_keys):
pop_keys = to_list(pop_keys)
return {k: v for k, v in dict_orig.items() if k not in pop_keys}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment