swig/python: add some inline documentation
return key if key else None
def append(self, *args):
+ """Add a key to the keyset. Argument can be either Key, string or bytes.
+ """
if isinstance(args[0], (str, bytes)):
args = [ Key(*args) ]
ret = 0
return ret
def extend(self, list):
+ """Extend the keyset by appending all the items from the iterable"""
return self.append(*list)
def remove(self, name):
+ """Removes a key from the keyset. Argument can be either string or Key.
+ It raises a ValueError if there is no such item.
+ """
key = self._lookup(name, KDB_O_POP)
if not key:
raise ValueError("ks.remove(x): x not in list")
