[pypy-svn] rev 2640 - pypy/trunk/src/pypy/module

alex at codespeak.net alex at codespeak.net
Sat Dec 20 12:34:07 CET 2003


Author: alex
Date: Sat Dec 20 12:34:07 2003
New Revision: 2640

Modified:
   pypy/trunk/src/pypy/module/builtin.py
Log:
fix the built-in callable


Modified: pypy/trunk/src/pypy/module/builtin.py
==============================================================================
--- pypy/trunk/src/pypy/module/builtin.py	(original)
+++ pypy/trunk/src/pypy/module/builtin.py	Sat Dec 20 12:34:07 2003
@@ -615,7 +615,8 @@
             return False
 
     def app_callable(self, ob):
-        return hasattr(ob, '__call__')
+        t = type(ob)
+        return t is type or hasattr(t, '__call__')
 
     def app_dir(self, *args):
         """dir([object]) -> list of strings


More information about the Pypy-commit mailing list