def __getitem__(self, name):
    'Find an zEntry by name\n\n        @param name: name of the zAttribute to return\n        @type name: str\n        @return: attribute named L{name}\n        @rtype: L{zAttr}\n        @raise KeyError: if there is no attribute named L{name} associated\n                         with this zVariable\n        @raise CDFError: other errors in CDF library\n        '
    attrib = super(zAttrList, self).__getitem__(name)
    zvar_num = self._zvar._num()
    if attrib.has_entry(zvar_num):
        attrib._raw = self._zvar._raw
        return attrib[zvar_num]
    else:
        raise KeyError(((name + ': no such attribute for variable ') + self._zvar.name()))
Find an zEntry by name

@param name: name of the zAttribute to return
@type name: str
@return: attribute named L{name}
@rtype: L{zAttr}
@raise KeyError: if there is no attribute named L{name} associated
                 with this zVariable
@raise CDFError: other errors in CDF library
def __getitem__(self, name):
    'Find an zEntry by name\n\n        @param name: name of the zAttribute to return\n        @type name: str\n        @return: attribute named L{name}\n        @rtype: L{zAttr}\n        @raise KeyError: if there is no attribute named L{name} associated\n                         with this zVariable\n        @raise CDFError: other errors in CDF library\n        '
    attrib = super(zAttrList, self).__getitem__(name)
    zvar_num = self._zvar._num()
    if attrib.has_entry(zvar_num):
        attrib._raw = self._zvar._raw
        return attrib[zvar_num]
    else:
        raise KeyError(((name + ': no such attribute for variable ') + self._zvar.name()))