#NEWLINE# def __add__( self , other ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# pairs = itertools . zip_longest ( self , other , fillvalue = 0.0 ) #NEWLINE# return Vector ( ( ( a + b ) for ( a , b ) in pairs ) ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return NotImplemented