sevnpy.copy_dict_and_exclude
- sevnpy.utility.utility.copy_dict_and_exclude(dict: Dict, exclude_keys: List | Tuple | Set | None = None) Dict[source]
Produce a hard copy of a dictionary excluding some keys
- Parameters:
dict (dictionary) – Input value for which we want to guess the related pattern matching
exclude_keys (None or array_like) – collection of keys to exclude from the output dictionary, if None just copy the dictionary
- Returns:
newdict – A copy of the input dictionary with the keys in exclude_keys removed
- Return type:
dictionary