ID EN
Operators

not_

Python 3.11

Return the outcome of not obj. (Note that there is no __not__() method for object instances; only the interpreter core defines this operation. The result is affected by the __bool__() and __len__() methods.)

Syntax

PYTHON
operator.not_(obj)

See Also

not __bool__() __len__()