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. this page was rendered by a django application in 0.00s 2012-02-12 18:22:25.958744. hosted by webfaction.