summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-04-25 04:30:54 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-04-25 04:30:54 +0000
commit0a56dcb06b49721fa0b758c58183f580da1eb51a (patch)
treedad95f0378bf63cc87220382259f89d6a3822822 /numpy/lib/utils.py
parentc655f8dacceba151dde8d13006751cd6b8d149ac (diff)
downloadnumpy-0a56dcb06b49721fa0b758c58183f580da1eb51a.tar.gz
FIX: Workaround python3.1 callable not working with PyCapsule.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index d9e37a65b..0eedffe99 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -940,7 +940,10 @@ def _lookfor_generate_cache(module, import_modules, regenerate):
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)