[pypy-svn] r10320 - pypy/dist/pypy/annotation
pedronis at codespeak.net
pedronis at codespeak.net
Tue Apr 5 16:15:02 CEST 2005
Author: pedronis
Date: Tue Apr 5 16:15:01 2005
New Revision: 10320
Modified:
pypy/dist/pypy/annotation/bookkeeper.py
Log:
whereami info for this assertion, which usually triggered by unhandled builtins
Modified: pypy/dist/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/annotation/bookkeeper.py (original)
+++ pypy/dist/pypy/annotation/bookkeeper.py Tue Apr 5 16:15:01 2005
@@ -224,7 +224,7 @@
# class information then
pass
func = func.im_func
- assert isinstance(func, FunctionType), "expected function, got %r"%func
+ assert isinstance(func, FunctionType), "[%s] expected function, got %r" % (self.whereami(), func)
# do we need to specialize this function in several versions?
x = getattr(func, '_specialize_', False)
#if not x:
More information about the Pypy-commit
mailing list