parameters: (self)
docstring: S.reverse() -- reverse *IN PLACE*
docstring_summary: S.reverse() -- reverse *IN PLACE*
docstring_tokens: S . reverse () -- reverse * IN PLACE *
function: def reverse(self):
          'S.reverse() -- reverse *IN PLACE*'
          n = len(self)
          for i in range(n//2):
              self[i], self[n-i-1] = self[n-i-1], self[i]
function_tokens: def reverse ( self ) : n = len ( self ) for i in range ( n // 2 ) : self [ i ] , self [ n - i - 1 ] = self [ n - i - 1 ] , self [ i ]