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
| Name | Type | Description |
|---|---|---|
| a | object | Left operand or target object. |
| b | object | Right operand. |
Return Value
bool
The bool result described above.
Working Example
Example Snippetpython
import operatora = [1]b = [1]print(operator.is_not(a, b))