#NEWLINE# def walk( self , only_points = False ) : #NEWLINE# #INDENT# '\n        Generator for iterating over segment points\n\n        Parameters\n        ----------\n        only_points: boolean\n            Only yield points (no index yielded)\n\n        Yields\n        ------\n        point: GPXTrackPoint\n            A point in the sement\n        point_no: int\n            Not included in yield if only_points is true\n        ' #NEWLINE# for ( point_no , point ) in enumerate ( self . points ) : #NEWLINE# #INDENT# if only_points : #NEWLINE# #INDENT# ( yield point ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield ( point , point_no ) )