Matchable checking if the matched string contains the matchee.
Same as other.find(value).
Matchable checking if the matched string ends with the matchee.
Same as other.endswith(value).
Matchable checking for strict equality.
That is, the values must be identical. (same as the regular == operator.)
Base matchable class.
Parameter: | value – See value. |
---|
Matchables are used to modify the way a value is tested for equality.
Subclasses of Matchable must implement the __eq__() method.
Matchable checking if the matched string starts with the matchee.
Same as other.startswith(value).