def new(self, data, type=None, number=None):
    'Create a new Entry in this Attribute\n\n        .. note:: If ``number`` is provided and an Entry with that number\n                  already exists, it will be overwritten.\n\n        Parameters\n        ==========\n        data\n            data to put in the Entry\n\n        Other Parameters\n        ================\n        type : int\n            type of the new Entry, from :mod:`~pycdf.const`\n            (otherwise guessed from ``data``)\n        number : int\n            Entry number to write, default is lowest available number.\n        '
    if (number is None):
        number = 0
        while self.has_entry(number):
            number += 1
    (dims, types, elements) = _Hyperslice.types(data, backward=self._cdf_file.backward)
    if (type is None):
        type = self._check_other_entries(types)
    if ((type is None) and (self.ENTRY_ == const.zENTRY_)):
        vartype = self._cdf_file[number].type()
        if (vartype in types):
            type = vartype
    if (type is None):
        type = types[0]
    elif hasattr(type, 'value'):
        type = type.value
    self._write_entry(number, data, type, dims, elements)
Create a new Entry in this Attribute

.. note:: If ``number`` is provided and an Entry with that number
          already exists, it will be overwritten.

Parameters
==========
data
    data to put in the Entry

Other Parameters
================
type : int
    type of the new Entry, from :mod:`~pycdf.const`
    (otherwise guessed from ``data``)
number : int
    Entry number to write, default is lowest available number.
def new(self, data, type=None, number=None):
    'Create a new Entry in this Attribute\n\n        .. note:: If ``number`` is provided and an Entry with that number\n                  already exists, it will be overwritten.\n\n        Parameters\n        ==========\n        data\n            data to put in the Entry\n\n        Other Parameters\n        ================\n        type : int\n            type of the new Entry, from :mod:`~pycdf.const`\n            (otherwise guessed from ``data``)\n        number : int\n            Entry number to write, default is lowest available number.\n        '
    if (number is None):
        number = 0
        while self.has_entry(number):
            number += 1
    (dims, types, elements) = _Hyperslice.types(data, backward=self._cdf_file.backward)
    if (type is None):
        type = self._check_other_entries(types)
    if ((type is None) and (self.ENTRY_ == const.zENTRY_)):
        vartype = self._cdf_file[number].type()
        if (vartype in types):
            type = vartype
    if (type is None):
        type = types[0]
    elif hasattr(type, 'value'):
        type = type.value
    self._write_entry(number, data, type, dims, elements)