ID EN
Built-in Constants

NotImplemented

Python 3.11

A special value which should be returned by the binary special methods (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__(), __iand__(), etc.) for the same purpose. It should not be evaluated in a boolean context. NotImplemented is the sole instance of the types.NotImplementedType type.

Syntax

PYTHON
NotImplemented

See Also

__eq__() __lt__() __add__() __rsub__() __imul__() __iand__() types.NotImplementedType Implementing the arithmetic operations