def __setitem__(self, name, data):
    'Sets a zEntry by name\n\n        The type of the zEntry is guessed from L{data}. The type is chosen to\n        match the data; subject to that constraint, it will try to match\n        (in order):\n        1. existing zEntry corresponding to this zVar\n        2. other zEntries in this zAttribute\n        3. the type of this zVar\n        4. data-matching constraints described in L{_Hyperslice.types}\n\n        @param name: name of zAttribute; zEntry for this zVariable will be set\n                     in zAttribute by this name\n        @type name: str\n        @raise CDFError: errors in CDF library\n        @raise ValueError: if unable to find a valid CDF type matching L{data},\n                           or if L{data} is the wrong dimensions.\n        '
    try:
        attr = super(zAttrList, self).__getitem__(name)
    except KeyError:
        attr = zAttr(self._cdf_file, name, True)
    attr._raw = self._zvar._raw
    attr[self._zvar._num()] = data
Sets a zEntry by name

The type of the zEntry is guessed from L{data}. The type is chosen to
match the data; subject to that constraint, it will try to match
(in order):
1. existing zEntry corresponding to this zVar
2. other zEntries in this zAttribute
3. the type of this zVar
4. data-matching constraints described in L{_Hyperslice.types}

@param name: name of zAttribute; zEntry for this zVariable will be set
             in zAttribute by this name
@type name: str
@raise CDFError: errors in CDF library
@raise ValueError: if unable to find a valid CDF type matching L{data},
                   or if L{data} is the wrong dimensions.
def __setitem__(self, name, data):
    'Sets a zEntry by name\n\n        The type of the zEntry is guessed from L{data}. The type is chosen to\n        match the data; subject to that constraint, it will try to match\n        (in order):\n        1. existing zEntry corresponding to this zVar\n        2. other zEntries in this zAttribute\n        3. the type of this zVar\n        4. data-matching constraints described in L{_Hyperslice.types}\n\n        @param name: name of zAttribute; zEntry for this zVariable will be set\n                     in zAttribute by this name\n        @type name: str\n        @raise CDFError: errors in CDF library\n        @raise ValueError: if unable to find a valid CDF type matching L{data},\n                           or if L{data} is the wrong dimensions.\n        '
    try:
        attr = super(zAttrList, self).__getitem__(name)
    except KeyError:
        attr = zAttr(self._cdf_file, name, True)
    attr._raw = self._zvar._raw
    attr[self._zvar._num()] = data