Ticket #709: datastructures.diff

File datastructures.diff, 431 bytes (added by brantley (deadwisdom@…, 19 years ago)
  • datastructures.py

     
    8080
    8181    def __len__(self):
    8282        return len(self.data)
     83   
     84    def __contains__(self, key):
     85        return self.data.has_key(key)
    8386
    8487    def get(self, key, default):
    8588        "Returns the default value if the requested data doesn't exist"
Back to Top