def _find_key(self, keyword, keylist, lkey=0):
    'Extract a certain keyword from the list\n\n        The methods searches for a particular keyword\n        in a keyword list. If found, the keyword is\n        copied and destroied in the input list.\n        If not found, an exception is fired.\n\n        Parameters\n        ----------\n        keyword: str\n            the keyword name\n        keylist: list\n            list of keywords\n\n        Returns\n        -------\n        keyword: str\n            the extracted keyword\n        '
    iindex = 0
    found = (- 1)
    for key in keylist:
        if (key.keyword == keyword):
            if lkey:
                nkey = ConfListKey(key.keyword, key.keyvalue, key.comment)
            else:
                nkey = ConfKey(key.keyword, key.keyvalue, key.comment)
            found = iindex
        iindex += 1
    if (found < 0):
        raise CKeyNotFound(keyword)
    else:
        del keylist[found]
    return nkey
Extract a certain keyword from the list

The methods searches for a particular keyword
in a keyword list. If found, the keyword is
copied and destroied in the input list.
If not found, an exception is fired.

Parameters
----------
keyword: str
    the keyword name
keylist: list
    list of keywords

Returns
-------
keyword: str
    the extracted keyword
def _find_key(self, keyword, keylist, lkey=0):
    'Extract a certain keyword from the list\n\n        The methods searches for a particular keyword\n        in a keyword list. If found, the keyword is\n        copied and destroied in the input list.\n        If not found, an exception is fired.\n\n        Parameters\n        ----------\n        keyword: str\n            the keyword name\n        keylist: list\n            list of keywords\n\n        Returns\n        -------\n        keyword: str\n            the extracted keyword\n        '
    iindex = 0
    found = (- 1)
    for key in keylist:
        if (key.keyword == keyword):
            if lkey:
                nkey = ConfListKey(key.keyword, key.keyvalue, key.comment)
            else:
                nkey = ConfKey(key.keyword, key.keyvalue, key.comment)
            found = iindex
        iindex += 1
    if (found < 0):
        raise CKeyNotFound(keyword)
    else:
        del keylist[found]
    return nkey