'Gets the Feature at the specified index.'

def __getitem__(self, index):

    if isinstance(index, six.integer_types):
        if (index < 0):
            raise OGRIndexError('Negative    indices    are    not    allowed    on    OGR    Layers.')
        return self._make_feature(index)
    elif isinstance(index, slice):
        (start, stop, stride) = index.indices(self.num_feat)
        return [self._make_feature(fid) for fid in xrange(start, stop, stride)]
    else:
        raise TypeError('Integers    and    slices    may    only    be    used    when    indexing    OGR    Layers.')
