diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-02-25 05:20:51 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-02-25 05:20:51 +0000 |
commit | f3580687a3f3752a8a8bebbcbe5b594055beb299 (patch) | |
tree | 116f28c4d47f23a0cfaec37050bfe93cf42ecf44 /numpy/f2py/cfuncs.py | |
parent | 9596a895dd01c27b9984fe8ff20e151eda41b9b8 (diff) | |
download | numpy-f3580687a3f3752a8a8bebbcbe5b594055beb299.tar.gz |
ENH: Add support for PyCapsule.
Diffstat (limited to 'numpy/f2py/cfuncs.py')
-rw-r--r-- | numpy/f2py/cfuncs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index 5c9de1701..ec448680d 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -999,7 +999,7 @@ static int create_cb_arglist(PyObject* fun,PyTupleObject* xa,const int maxnofarg \t\t\t\ttot += PyTuple_Size((PyObject *)xa); \t\t\ttmp_fun = fun; \t\t} -\t\telse if (PyCObject_Check(fun)) { +\t\telse if (F2PyCapsule_Check(fun)) { \t\t\ttot = maxnofargs; \t\t\tif (xa != NULL) \t\t\t\text = PyTuple_Size((PyObject *)xa); |