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.01s 2009-01-09 02:36:10.448381. hosted by webfaction.