11.17. Operator Numerical

  • -obj - neg

  • +obj - pos

  • ~obj - invert

11.17.1. About

Table 11.10. Numerical Operator Overload

Operator

Method

-obj

obj.__neg__()

+obj

obj.__pos__()

~obj

obj.__invert__()