Ticket #20276: datastructures.diff

File datastructures.diff, 349 bytes (added by Tilman Koschnick, 11 years ago)
  • datastructures.py

    old new  
    1414    def __init__(self, *dicts):
    1515        self.dicts = dicts
    1616
     17    def __nonzero__(self):
     18        return any(self.dicts)
     19
    1720    def __getitem__(self, key):
    1821        for dict_ in self.dicts:
    1922            try:
Back to Top