[Numpy-svn] r8356 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Sat Apr 24 23:30:54 CDT 2010


Author: charris
Date: 2010-04-24 23:30:54 -0500 (Sat, 24 Apr 2010)
New Revision: 8356

Modified:
   trunk/numpy/lib/utils.py
Log:
FIX: Workaround python3.1 callable not working with PyCapsule.

Modified: trunk/numpy/lib/utils.py
===================================================================
--- trunk/numpy/lib/utils.py	2010-04-25 01:29:19 UTC (rev 8355)
+++ trunk/numpy/lib/utils.py	2010-04-25 04:30:54 UTC (rev 8356)
@@ -940,7 +940,10 @@
             kind = "class"
             for n, v in _getmembers(item):
                 stack.append(("%s.%s" % (name, n), v))
-        elif callable(item):
+        # FIXME later: workaround python3.1 capsule callable bug
+        # by using old version of callable.
+        # elif callable(item):
+        elif hasattr(item, "__call__"):
             kind = "func"
 
         doc = inspect.getdoc(item)



More information about the Numpy-svn mailing list