MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _op

Method _op

lib/sqlalchemy/engine/row.py:204–209  ·  view source on GitHub ↗
(self, other: Any, op: Callable[[Any, Any], bool])

Source from the content-addressed store, hash-verified

202 return key in self._data
203
204 def _op(self, other: Any, op: Callable[[Any, Any], bool]) -> bool:
205 return (
206 op(self._to_tuple_instance(), other._to_tuple_instance())
207 if isinstance(other, Row)
208 else op(self._to_tuple_instance(), other)
209 )
210
211 __hash__ = BaseRow.__hash__
212

Callers 6

__lt__Method · 0.95
__le__Method · 0.95
__ge__Method · 0.95
__gt__Method · 0.95
__eq__Method · 0.95
__ne__Method · 0.95

Calls 2

opFunction · 0.85
_to_tuple_instanceMethod · 0.80

Tested by

no test coverage detected