[Zope-CVS] CVS: Products/Transience - Transience.py:1.7
Matthew T. Kromer
matt@zope.com
Tue, 23 Oct 2001 16:29:27 -0400
Update of /cvs-repository/Products/Transience
In directory cvs.zope.org:/tmp/cvs-serv26339
Modified Files:
Transience.py
Log Message:
Updated Transience & help to match
=== Products/Transience/Transience.py 1.6 => 1.7 ===
return self._container.items()
- def get(self, k, default=None):
- return self._container.get(k, default)
+ def get(self, k, default=_notfound):
+ v = self._container.get(k, default)
+ if v is _notfound: raise KeyError, k
+ return v
- def has_key(self, k, marker=_notfound):
- if self._container.get(k, marker) is not _notfound: return 1
+ def has_key(self, k):
+ if self._container.get(k, _notfound) is not _notfound: return 1
+ return 0
def clear(self):
self._container.clear()