We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

operator-neg

The unary - (minus) operator yields the negation of its numeric argument.

If the argument does not have the proper type, a TypeError exception is raised.

To support this operator in your own classes, implement the __neg__ method.