示例#1
0
 def __contains__(self, key):
     return _start(key) in self.state
示例#2
0
 def __getitem__(self, key):
     try:
         return self.state[_start(key)], self.state[_end(key)]
     except KeyError:
         raise KeyError(key)