| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
dict --+
|
Cache
A dictionary like cache.
inv:
len(self._usage) <= self.size
len(self.data) <= self.size
| Instance Methods | |||
new empty dictionary |
|
||
| (k, v), remove and return some (key, value) pair as a |
|
||
| D.get(k,d), also set D[k]=d if k not in D |
|
||
| None |
|
||
|
Inherited from Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
Warning : Cache.__init__() != dict.__init__(). Constructor does not take any arguments beside size.
|
2-tuple; but raise KeyError if D is empty.
|
|
Update D from dict/iterable E and F. If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Jan 17 22:12:20 2016 | http://epydoc.sourceforge.net |