def __getitem__(self, name):
    'Find an Attribute by name\n\n        @param name: name of the Attribute to return\n        @type name: str\n        @return: attribute named L{name}\n        @rtype: L{Attr}\n        @raise KeyError: if there is no attribute named L{name}\n        @raise CDFError: other errors in CDF library\n        '
    try:
        attrib = self.AttrType(self._cdf_file, name)
    except CDFError:
        (t, v, tb) = sys.exc_info()
        if (v.status == const.NO_SUCH_ATTR):
            raise KeyError(((name + ': ') + str(v)))
        else:
            raise
    if (attrib.global_scope() != self.global_scope):
        raise KeyError((((name + ': no ') + self.attr_name) + ' by that name.'))
    return attrib
Find an Attribute by name

@param name: name of the Attribute to return
@type name: str
@return: attribute named L{name}
@rtype: L{Attr}
@raise KeyError: if there is no attribute named L{name}
@raise CDFError: other errors in CDF library
def __getitem__(self, name):
    'Find an Attribute by name\n\n        @param name: name of the Attribute to return\n        @type name: str\n        @return: attribute named L{name}\n        @rtype: L{Attr}\n        @raise KeyError: if there is no attribute named L{name}\n        @raise CDFError: other errors in CDF library\n        '
    try:
        attrib = self.AttrType(self._cdf_file, name)
    except CDFError:
        (t, v, tb) = sys.exc_info()
        if (v.status == const.NO_SUCH_ATTR):
            raise KeyError(((name + ': ') + str(v)))
        else:
            raise
    if (attrib.global_scope() != self.global_scope):
        raise KeyError((((name + ': no ') + self.attr_name) + ' by that name.'))
    return attrib