def add_gkey(self, keyword, keyvalue, comment=None):
    'Add global keyword\n\n        The method adds a keyword to the list of global\n        keywords. In case that the keyword just exists,\n        it is overwritten, otherwise it is appended\n        to the global keyword list.\n\n        Parameters\n        ----------\n        keyword: str\n            name of the requested keyword\n        keyvalue: any\n            value of the requested keyword\n        comment: str\n            comment for the keyword\n        '
    index = self._get_gkey_index(keyword)
    if (index > (- 1)):
        self.gkeys[index].keyvalue = keyvalue
        self.gkeys[index].comment = comment
    else:
        self.gkeys.append(ConfKey(keyword, keyvalue, comment))
Add global keyword

The method adds a keyword to the list of global
keywords. In case that the keyword just exists,
it is overwritten, otherwise it is appended
to the global keyword list.

Parameters
----------
keyword: str
    name of the requested keyword
keyvalue: any
    value of the requested keyword
comment: str
    comment for the keyword
def add_gkey(self, keyword, keyvalue, comment=None):
    'Add global keyword\n\n        The method adds a keyword to the list of global\n        keywords. In case that the keyword just exists,\n        it is overwritten, otherwise it is appended\n        to the global keyword list.\n\n        Parameters\n        ----------\n        keyword: str\n            name of the requested keyword\n        keyvalue: any\n            value of the requested keyword\n        comment: str\n            comment for the keyword\n        '
    index = self._get_gkey_index(keyword)
    if (index > (- 1)):
        self.gkeys[index].keyvalue = keyvalue
        self.gkeys[index].comment = comment
    else:
        self.gkeys.append(ConfKey(keyword, keyvalue, comment))