def __getitem__(self, key): ret = riscos.getenv(key) if ret != None: return ret else: raise KeyError return
def get(self, key, failobj = None): value = riscos.getenv(key) if value != None: return value else: return failobj return
def __contains__(self, key): return riscos.getenv(key) is not None
def has_key(self, key): value = riscos.getenv(key) return value != None
"""A more or less complete dictionary like interface for the RISC OS environment."""