def match_str(filter_str, dct):
 return all((_match_one(filter_part, dct) for filter_part in filter_str.split(u'&')))

def match_str ( filter_str , dct ) : return all ( ( _match_one ( filter_part , dct ) for filter_part in filter_str . split ( u'&' ) ) )
filter a dictionary with a simple string syntax .