pyconstruct.utils.dictsplit¶
-
pyconstruct.utils.
dictsplit
(d, keys)¶ Split a dictionary in two given a set of keys.
The first dictionary contains only the provided keys, whereas the second contains all the remaining keys.
Parameters: - d (dict) – A dictionary.
- keys (list or set) – The set of keys to split the dictionary on.