changeset 29839 | 79add5a4e857 |
parent 29787 | 279cd80059d4 |
child 29843 | bac1829ec31f |
29838:a22b3de3b65a | 29839:79add5a4e857 |
---|---|
649 |
649 |
650 # Additional dict methods. |
650 # Additional dict methods. |
651 |
651 |
652 def get(self, k, default=None): |
652 def get(self, k, default=None): |
653 try: |
653 try: |
654 return self._cache[k] |
654 return self._cache[k].value |
655 except KeyError: |
655 except KeyError: |
656 return default |
656 return default |
657 |
657 |
658 def clear(self): |
658 def clear(self): |
659 n = self._head |
659 n = self._head |