Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
>>> intersect_dicts({'a': 1, 'b': 2}, {'a': 1, 'b': 3})
{'a': 1}
>>> intersect_dicts({'a': 1, 'b': 2}, {'a': 0})
{}

        def intersect_dicts(d1, d2):
    """
    >>> intersect_dicts({'a': 1, 'b': 2}, {'a': 1, 'b': 3})
    {'a': 1}
    >>> intersect_dicts({'a': 1, 'b': 2}, {'a': 0})
    {}
    """
    return {k: v for k, v in d1.iteritems() if v == d2.get(k)}
        


src/s/b/sbgsdk-0.5.4/sbgsdk/schema/io_list.py   sbgsdk(Download)
from sbgsdk.schema.io_value import IOValue
from sbgsdk.util import DotAccessDict, intersect_dicts
 
 
class IOList(object):