MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_not

Method is_not

lib/sqlalchemy/sql/operators.py:1242–1257  ·  view source on GitHub ↗

Implement the ``IS NOT`` operator. Normally, ``IS NOT`` is generated automatically when comparing to a value of ``None``, which resolves to ``NULL``. However, explicit usage of ``IS NOT`` may be desirable if comparing to boolean values on certain platforms.

(self, other: Any)

Source from the content-addressed store, hash-verified

1240 return self.operate(is_, other)
1241
1242 def is_not(self, other: Any) -> ColumnOperators:
1243 """Implement the ``IS NOT`` operator.
1244
1245 Normally, ``IS NOT`` is generated automatically when comparing to a
1246 value of ``None``, which resolves to ``NULL``. However, explicit
1247 usage of ``IS NOT`` may be desirable if comparing to boolean values
1248 on certain platforms.
1249
1250 .. versionchanged:: 1.4 The ``is_not()`` operator is renamed from
1251 ``isnot()`` in previous releases. The previous name remains
1252 available for backwards compatibility.
1253
1254 .. seealso:: :meth:`.ColumnOperators.is_`
1255
1256 """
1257 return self.operate(is_not, other)
1258
1259 # deprecated 1.4; see #5429
1260 if TYPE_CHECKING:

Callers 14

_table_options_queryMethod · 0.45
_foreing_key_queryMethod · 0.45
_index_queryMethod · 0.45
get_temp_table_namesMethod · 0.45
_table_options_queryMethod · 0.45
is_notFunction · 0.45
runMethod · 0.45
test_cte_w_annotatedMethod · 0.45
goFunction · 0.45
test_issue_9418Function · 0.45
operators.pyFile · 0.45

Calls 1

operateMethod · 0.95

Tested by 4

runMethod · 0.36
test_cte_w_annotatedMethod · 0.36
test_issue_9418Function · 0.36