def matchRecordAttrs(mapobj, attrs):
for k,v in iteritems(attrs):<EOL><INDENT>try:    val = getattr(mapobj, k)<EOL>except AttributeError:       <EOL><INDENT>if bool(v): return False <EOL>else:       continue     <EOL><DEDENT>if val != v:    return False <EOL><DEDENT>return True                      <EOL>
attempt to match given attributes against a single map object's attributes