[pypy-svn] r31993 - pypy/dist/pypy/rpython
arigo at codespeak.net
arigo at codespeak.net
Mon Sep 4 21:36:01 CEST 2006
Author: arigo
Date: Mon Sep 4 21:35:57 2006
New Revision: 31993
Modified:
pypy/dist/pypy/rpython/llinterp.py
Log:
Make the AssertionError more readable by nicely putting blank lines
around the pages and pages of each type's repr.
Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py (original)
+++ pypy/dist/pypy/rpython/llinterp.py Mon Sep 4 21:35:57 2006
@@ -190,7 +190,7 @@
try:
val = lltype.enforce(var.concretetype, val)
except TypeError:
- assert False, "type error: %r val -> %r var" % (lltype.typeOf(val), var.concretetype)
+ assert False, "type error: input value of type:\n\n\t%r\n\n===> variable of type:\n\n\t%r\n" % (lltype.typeOf(val), var.concretetype)
assert isinstance(var, Variable)
self.bindings[var] = val
More information about the Pypy-commit
mailing list