code: def _getitem(self, index):
          
          row = self._records[index]
          if row is not None:
              pass
          elif self.is_attached():
              # need to handle negative indices manually
              if index < 0:
                  index = len(self._records) + index
              row = next((decode_row(line)
                          for i, line in self._enum_lines()
                          if i == index),
                         None)
              if row is None:
                  raise ItsdbError('could not retrieve row in attached table')
          else:
              raise ItsdbError('invalid row in detached table: {}'.format(index))
  
          return Record._make(self.fields, row, self, index)
docs: Get a single non-slice index.