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.02s 2008-10-07 01:58:06.362469. hosted by webfaction.