original_docstring: Provides list-like handling of a record index with a clearer
          error message if the index is out of bounds.
docstring: Provides list-like handling of a record index with a clearer
  error message if the index is out of bounds.
docstring_tokens: Provides list - like handling of a record index with a clearer error message if the index is out of bounds .
code: def __restrictIndex(self, i):
          """Provides list-like handling of a record index with a clearer
          error message if the index is out of bounds."""
          if self.numRecords:
              rmax = self.numRecords - 1
              if abs(i) > rmax:
                  raise IndexError("Shape or Record index out of range.")
              if i < 0: i = range(self.numRecords)[i]
          return i
code_tokens: def __restrictIndex ( self , i ) : if self . numRecords : rmax = self . numRecords - 1 if abs ( i ) > rmax : raise IndexError ( "Shape or Record index out of range." ) if i < 0 : i = range ( self . numRecords ) [ i ] return i
short_docstring: Provides list-like handling of a record index with a clearer
  error message if the index is out of bounds.
short_docstring_tokens: Provides list - like handling of a record index with a clearer error message if the index is out of bounds .
comment: """Provides list-like handling of a record index with a clearer
          error message if the index is out of bounds."""