Ticket #709: datastructures.diff
File datastructures.diff, 431 bytes (added by , 19 years ago) |
---|
-
datastructures.py
80 80 81 81 def __len__(self): 82 82 return len(self.data) 83 84 def __contains__(self, key): 85 return self.data.has_key(key) 83 86 84 87 def get(self, key, default): 85 88 "Returns the default value if the requested data doesn't exist"