(self, matches, bindings=None, keys=None)
| 1589 | |
| 1590 | class MatchResult: |
| 1591 | def __init__(self, matches, bindings=None, keys=None): |
| 1592 | self.__dict__.update(bindings or {}) |
| 1593 | self._matches = matches |
| 1594 | self._keys = keys or [] |
| 1595 | |
| 1596 | def __bool__(self): |
| 1597 | return self._matches |