#NEWLINE# def remove_point( self , point_no ) : #NEWLINE# #INDENT# ' Removes a point specificed by index from the segment ' #NEWLINE# if ( ( point_no < 0 ) or ( point_no >= len ( self . points ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# part_1 = self . points [ : point_no ] #NEWLINE# part_2 = self . points [ ( point_no + 1 ) : ] #NEWLINE# self . points = ( part_1 + part_2 )