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

arigo at codespeak.net arigo at codespeak.net
Mon Nov 29 15:33:17 CET 2004


Author: arigo
Date: Mon Nov 29 15:33:16 2004
New Revision: 7702

Modified:
   pypy/trunk/src/pypy/annotation/bookkeeper.py
Log:
consider None as a NULL function pointer.

Modified: pypy/trunk/src/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/trunk/src/pypy/annotation/bookkeeper.py	(original)
+++ pypy/trunk/src/pypy/annotation/bookkeeper.py	Mon Nov 29 15:33:16 2004
@@ -158,6 +158,8 @@
             return o
 
     def pycall(self, func, *args):
+        if func is None:   # consider None as a NULL function pointer
+            return SomeImpossibleValue()
         if isinstance(func, (type, ClassType)) and \
             func.__module__ != '__builtin__':
             cls = func



More information about the Pypy-commit mailing list