MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _op

Method _op

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

Source from the content-addressed store, hash-verified

215 index = _special_name_accessor("index")
216
217 def _op(self, other: Any, op: Callable[[Any, Any], bool]) -> bool:
218 return (
219 op(self._to_tuple_instance(), other._to_tuple_instance())
220 if isinstance(other, Row)
221 else op(self._to_tuple_instance(), other)
222 )
223
224 __hash__ = BaseRow.__hash__
225

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