示例#1
0
 def __getitem__(self, key):
     ret = riscos.getenv(key)
     if ret != None:
         return ret
     else:
         raise KeyError
         return
示例#2
0
 def get(self, key, failobj = None):
     value = riscos.getenv(key)
     if value != None:
         return value
     else:
         return failobj
         return
示例#3
0
 def get(self, key, failobj = None):
     value = riscos.getenv(key)
     if value != None:
         return value
     else:
         return failobj
         return
示例#4
0
 def __getitem__(self, key):
     ret = riscos.getenv(key)
     if ret != None:
         return ret
     else:
         raise KeyError
         return
示例#5
0
 def __contains__(self, key):
     return riscos.getenv(key) is not None
示例#6
0
 def has_key(self, key):
     value = riscos.getenv(key)
     return value != None
示例#7
0
 def __contains__(self, key):
     return riscos.getenv(key) is not None
示例#8
0
 def has_key(self, key):
     value = riscos.getenv(key)
     return value != None
示例#9
0
"""A more or less complete dictionary like interface for the RISC OS environment."""