#NEWLINE# def __isub__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , Vec2d ) : #NEWLINE# #INDENT# self . x -= other . x #NEWLINE# self . y -= other . y #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( other , '__getitem__' ) : #NEWLINE# #INDENT# self . x -= other [ 0 ] #NEWLINE# self . y -= other [ 1 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . x -= other #NEWLINE# self . y -= other #NEWLINE# #UNINDENT# #UNINDENT# return self