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 2008-10-11 00:19:20.846946. hosted by webfaction.