(self, *others)
return prettyForm(binding=prettyForm.ADD, *stringPict.next(*result))
Make a pretty addition.
        Addition of negative numbers is simplified.
Make a pretty addition.
        Addition of negative numbers is simplified.
Make a pretty addition . Addition of negative numbers is simplified .
def __add__(self, *others):
        """Make a pretty addition.
        Addition of negative numbers is simplified.
        """
        arg = self
        if arg.binding > prettyForm.NEG:
            arg = stringPict(*arg.parens())
        result = [arg]
        for arg in others:
            #add parentheses for weak binders
            if arg.binding > prettyForm.NEG:
                arg = stringPict(*arg.parens())
            #use existing minus sign if available
            if arg.binding != prettyForm.NEG:
                result.append(' + ')
            result.append(arg)
        return prettyForm(binding=prettyForm.ADD, *stringPict.next(*result))
def __add__ ( self , * others ) : arg = self if arg . binding > prettyForm . NEG : arg = stringPict ( * arg . parens ( ) ) result = [ arg ] for arg in others : #add parentheses for weak binders if arg . binding > prettyForm . NEG : arg = stringPict ( * arg . parens ( ) ) #use existing minus sign if available if arg . binding != prettyForm . NEG : result . append ( ' + ' ) result . append ( arg ) return prettyForm ( binding = prettyForm . ADD , * stringPict . next ( * result ) )