def __contains__(self, key):
    "Determines whether a particular variable name is in the CDF\n\n        @note: Essentially an efficiency function; L{__iter__} is called\n               if this isn't defined\n        @param key: key/variable name to check\n        @type key: string\n        @return: True if L{key} is the name of a variable in CDF, else False\n        @rtype: Boolean\n        "
    try:
        foo = self[key]
        return True
    except KeyError as e:
        expected = (str(key) + ': NO_SUCH_VAR: Named variable not found in this CDF.')
        if (expected in e.args):
            return False
        raise
Determines whether a particular variable name is in the CDF

@note: Essentially an efficiency function; L{__iter__} is called
       if this isn't defined
@param key: key/variable name to check
@type key: string
@return: True if L{key} is the name of a variable in CDF, else False
@rtype: Boolean
def __contains__(self, key):
    "Determines whether a particular variable name is in the CDF\n\n        @note: Essentially an efficiency function; L{__iter__} is called\n               if this isn't defined\n        @param key: key/variable name to check\n        @type key: string\n        @return: True if L{key} is the name of a variable in CDF, else False\n        @rtype: Boolean\n        "
    try:
        foo = self[key]
        return True
    except KeyError as e:
        expected = (str(key) + ': NO_SUCH_VAR: Named variable not found in this CDF.')
        if (expected in e.args):
            return False
        raise