in the method DictCache.__getitem__(key), it use self._cache_dict.get(key,
NULL) to get value, but LRUDict direct subclass the builtin dict, the
get()/set() does not function correctly. I reimplement the LRUDict as a
subclass of collections.MutableMapping. Not sure if it is a bug, or I am wrong.
Reference:
*
http://stackoverflow.com/questions/3387691/python-how-to-perfectly-override-a-di
ct
* http://stackoverflow.com/questions/7148419/subclass-dict-userdict-dict-or-abc
* http://docs.python.org/library/abc.html
Original issue reported on code.google.com by binbi...@gmail.com on 22 Sep 2012 at 8:36
Original issue reported on code.google.com by
binbi...@gmail.com
on 22 Sep 2012 at 8:36Attachments: