matches

@accepts(RB.ExtDBKey)
@returns(gboolean)
def matches(b)

Checks whether the fields specified in @a match @b. For keys to match, they must have the same set of required fields, and the values for all must match. Optional fields must have the same values if present in both. Informational fields are ignored.

b :

second RB.ExtDBKey

Returns :

True if the keys match