예제 #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."""