Ticket #20276: datastructures.diff
File datastructures.diff, 349 bytes (added by , 12 years ago) |
---|
-
datastructures.py
old new 14 14 def __init__(self, *dicts): 15 15 self.dicts = dicts 16 16 17 def __nonzero__(self): 18 return any(self.dicts) 19 17 20 def __getitem__(self, key): 18 21 for dict_ in self.dicts: 19 22 try: