environment/lib/python2.7/site-packages/IPython/parallel/controller/dictdb.py
def _match(self, check):
        """Find all the matches for a check dict."""
        matches = []
        tests = {}
        for k,v in check.iteritems():
            if isinstance(v, dict):
                tests[k] = CompositeFilter(v)
            else:
                tests[k] = lambda o: o==v

        for rec in self._records.itervalues():
            if self._match_one(rec, tests):
                matches.append(copy(rec))
        return matches
def _match(self, check):
        matches = []
        tests = {}
        for k,v in check.iteritems():
            if isinstance(v, dict):
                tests[k] = CompositeFilter(v)
            else:
                tests[k] = lambda o: o==v

        for rec in self._records.itervalues():
            if self._match_one(rec, tests):
                matches.append(copy(rec))
        return matches
def _match ( self , check ) : matches = [ ] tests = { } for k , v in check . iteritems ( ) : if isinstance ( v , dict ) : tests [ k ] = CompositeFilter ( v ) else : tests [ k ] = lambda o : o == v for rec in self . _records . itervalues ( ) : if self . _match_one ( rec , tests ) : matches . append ( copy ( rec ) ) return matches
Find all the matches for a check dict.
Find all the matches for a check dict .