Operator Functions

operator.is_not()

Test different object identity, not equality. Does not dispatch to a custom equality method.

Formal Syntax & Structure

python syntaxpython
operator.is_not(a, b, /)

Parameters & Attributes

NameTypeDescription
aobjectLeft operand or target object.
bobjectRight operand.

Return Value

bool

The bool result described above.

Working Example

Example Snippetpython
import operatora = [1]b = [1]print(operator.is_not(a, b))
Python Reference