operator-add

The + (addition) operator yields the sum of its arguments. The arguments must either both be numbers or both sequences of the same type. In the former case, the numbers are converted to a common type and then added together. In the latter case, the sequences are concatenated.

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

 

A Django site. this page was rendered by a django application in 0.00s 2012-02-12 18:09:52.265318. hosted by webfaction.