def __getitem__(self, key):
    'Returns a slice from the data array. Details under :py:class:`pycdf.Var`.\n\n        @return: The data from this variable\n        @rtype: list-of-lists of appropriate type.\n        @raise IndexError: if L{key} is out of range, mismatches dimensions,\n                           or simply unparseable.\n        @raise CDFError: for errors from the CDF library\n        '
    hslice = _Hyperslice(self, key)
    if hslice.rv:
        if ((hslice.dimsizes[0] == 0) and hslice.degen[0] and (hslice.starts[0] == 0)):
            raise IndexError('record index out of range')
    elif (hslice.dimsizes[0] == 0):
        if ((len(hslice.degen) > 1) and max(hslice.degen[1:])):
            raise IndexError('record index out of range')
        else:
            hslice.counts[...] = 0
            if (len(hslice.counts) == 1):
                hslice.degen[0] = False
    result = hslice.create_array()
    if (hslice.counts[0] != 0):
        hslice.select()
        lib.call(const.GET_, const.zVAR_HYPERDATA_, result.ctypes.data_as(ctypes.c_void_p))
    return hslice.convert_input_array(result)
Returns a slice from the data array. Details under :py:class:`pycdf.Var`.

@return: The data from this variable
@rtype: list-of-lists of appropriate type.
@raise IndexError: if L{key} is out of range, mismatches dimensions,
                   or simply unparseable.
@raise CDFError: for errors from the CDF library
def __getitem__(self, key):
    'Returns a slice from the data array. Details under :py:class:`pycdf.Var`.\n\n        @return: The data from this variable\n        @rtype: list-of-lists of appropriate type.\n        @raise IndexError: if L{key} is out of range, mismatches dimensions,\n                           or simply unparseable.\n        @raise CDFError: for errors from the CDF library\n        '
    hslice = _Hyperslice(self, key)
    if hslice.rv:
        if ((hslice.dimsizes[0] == 0) and hslice.degen[0] and (hslice.starts[0] == 0)):
            raise IndexError('record index out of range')
    elif (hslice.dimsizes[0] == 0):
        if ((len(hslice.degen) > 1) and max(hslice.degen[1:])):
            raise IndexError('record index out of range')
        else:
            hslice.counts[...] = 0
            if (len(hslice.counts) == 1):
                hslice.degen[0] = False
    result = hslice.create_array()
    if (hslice.counts[0] != 0):
        hslice.select()
        lib.call(const.GET_, const.zVAR_HYPERDATA_, result.ctypes.data_as(ctypes.c_void_p))
    return hslice.convert_input_array(result)