diff options
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r-- | numpy/lib/utils.py | 5 |
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) |