#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# representation = '' #NEWLINE# for attribute in ( 'name' , 'description' , 'number' ) : #NEWLINE# #INDENT# value = getattr ( self , attribute ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# representation += ( '%s%s=%s' % ( ( ', ' if representation else '' ) , attribute , repr ( value ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# representation += ( '%ssegments=%s' % ( ( ', ' if representation else '' ) , repr ( self . segments ) ) ) #NEWLINE# return ( 'GPXTrack(%s)' % representation )