[pypy-svn] r65425 - pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp
antocuni at codespeak.net
antocuni at codespeak.net
Tue May 26 20:06:46 CEST 2009
Author: antocuni
Date: Tue May 26 20:06:38 2009
New Revision: 65425
Modified:
pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/history.py
Log:
make a better repr for static methods
Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/history.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/history.py (original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/history.py Tue May 26 20:06:38 2009
@@ -48,6 +48,8 @@
try:
if box.value.obj._TYPE is ootype.String:
return '(%r)' % box.value.obj._str
+ if isinstance(box.value.obj._TYPE, ootype.StaticMethod):
+ return '(%r)' % box.value.obj
if isinstance(box.value.obj, ootype._view):
return repr(box.value.obj._inst._TYPE)
else:
More information about the Pypy-commit
mailing list