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.

 

A Django site. rendered by a django application. hosted by webfaction.