[pypy-svn] r51201 - pypy/dist/pypy/tool
xoraxax at codespeak.net
xoraxax at codespeak.net
Sat Feb 2 12:57:38 CET 2008
Author: xoraxax
Date: Sat Feb 2 12:57:36 2008
New Revision: 51201
Modified:
pypy/dist/pypy/tool/cache.py
Log:
Add a repr for the Cache class.
Modified: pypy/dist/pypy/tool/cache.py
==============================================================================
--- pypy/dist/pypy/tool/cache.py (original)
+++ pypy/dist/pypy/tool/cache.py Sat Feb 2 12:57:36 2008
@@ -58,6 +58,9 @@
if lock: lock.release()
getorbuild._annspecialcase_ = "specialize:memo"
+ def __repr__(self):
+ return "<Cache %r (%i items)>" % (self.__class__.__name__, len(self.content))
+
def _ready(self, result):
pass
More information about the Pypy-commit
mailing list