[pypy-svn] r7340 - pypy/trunk/src/pypy/annotation

mwh at codespeak.net mwh at codespeak.net
Wed Nov 17 17:36:28 CET 2004


Author: mwh
Date: Wed Nov 17 17:36:28 2004
New Revision: 7340

Modified:
   pypy/trunk/src/pypy/annotation/factory.py
Log:
Add a sanity assert.


Modified: pypy/trunk/src/pypy/annotation/factory.py
==============================================================================
--- pypy/trunk/src/pypy/annotation/factory.py	(original)
+++ pypy/trunk/src/pypy/annotation/factory.py	Wed Nov 17 17:36:28 2004
@@ -158,6 +158,7 @@
                 s_self = immutablevalue(func.im_self)
                 args = [s_self] + list(args)
             func = func.im_func
+        assert isinstance(func, FunctionType), "expected function, got %r"%func
         return self.bookkeeper.annotator.recursivecall(func, self, *args)
 
         #if hasattr(func, 'specialize'):



More information about the Pypy-commit mailing list