def type(self, number, new_type=None):
    "Find or change the CDF type of a particular Entry number\n\n        Parameters\n        ==========\n        number : int\n            number of Entry to check or change\n\n        Other Parameters\n        ================\n        new_type\n            type to change this Entry to, from :mod:`~pycdf.const`.\n            Omit to only check type.\n\n        Returns\n        =======\n        out : int\n            CDF variable type, see :mod:`~pycdf.const`\n\n        Notes\n        =====\n        If changing types, old and new must be equivalent, see CDF\n        User's Guide section 2.5.5 pg. 57\n        "
    if (new_type != None):
        if (not hasattr(new_type, 'value')):
            new_type = ctypes.c_long(new_type)
        size = ctypes.c_long(self._entry_len(number))
        status = self._call(const.SELECT_, self.ENTRY_, ctypes.c_long(number), const.PUT_, self.ENTRY_DATASPEC_, new_type, size, ignore=(const.NO_SUCH_ENTRY,))
        if (status == const.NO_SUCH_ENTRY):
            raise IndexError((('list index ' + str(number)) + ' out of range.'))
    cdftype = ctypes.c_long(0)
    status = self._call(const.SELECT_, self.ENTRY_, ctypes.c_long(number), const.GET_, self.ENTRY_DATATYPE_, ctypes.byref(cdftype), ignore=(const.NO_SUCH_ENTRY,))
    if (status == const.NO_SUCH_ENTRY):
        raise IndexError((('list index ' + str(number)) + ' out of range.'))
    return cdftype.value
Find or change the CDF type of a particular Entry number

Parameters
==========
number : int
    number of Entry to check or change

Other Parameters
================
new_type
    type to change this Entry to, from :mod:`~pycdf.const`.
    Omit to only check type.

Returns
=======
out : int
    CDF variable type, see :mod:`~pycdf.const`

Notes
=====
If changing types, old and new must be equivalent, see CDF
User's Guide section 2.5.5 pg. 57
def type(self, number, new_type=None):
    "Find or change the CDF type of a particular Entry number\n\n        Parameters\n        ==========\n        number : int\n            number of Entry to check or change\n\n        Other Parameters\n        ================\n        new_type\n            type to change this Entry to, from :mod:`~pycdf.const`.\n            Omit to only check type.\n\n        Returns\n        =======\n        out : int\n            CDF variable type, see :mod:`~pycdf.const`\n\n        Notes\n        =====\n        If changing types, old and new must be equivalent, see CDF\n        User's Guide section 2.5.5 pg. 57\n        "
    if (new_type != None):
        if (not hasattr(new_type, 'value')):
            new_type = ctypes.c_long(new_type)
        size = ctypes.c_long(self._entry_len(number))
        status = self._call(const.SELECT_, self.ENTRY_, ctypes.c_long(number), const.PUT_, self.ENTRY_DATASPEC_, new_type, size, ignore=(const.NO_SUCH_ENTRY,))
        if (status == const.NO_SUCH_ENTRY):
            raise IndexError((('list index ' + str(number)) + ' out of range.'))
    cdftype = ctypes.c_long(0)
    status = self._call(const.SELECT_, self.ENTRY_, ctypes.c_long(number), const.GET_, self.ENTRY_DATATYPE_, ctypes.byref(cdftype), ignore=(const.NO_SUCH_ENTRY,))
    if (status == const.NO_SUCH_ENTRY):
        raise IndexError((('list index ' + str(number)) + ' out of range.'))
    return cdftype.value