

def _TStrictDictCheck(require_all, exclusive, items, val):
    'Helper function for L{TStrictDict}.\n\n  '
    notfound_fn = (lambda _: (not exclusive))
    if (require_all and (not frozenset(value.keys()).issuperset(items.keys()))):
        return False
    return compat.all((items.get(key, notfound_fn)(value) for (key, value) in val.items()))

dataset/ETHPy150Open ganeti/ganeti/lib/ht.py _TStrictDictCheck/VarMisuse@38/69 `val`->`value`