diff options
Diffstat (limited to 'doc/source/f2py/python-usage.rst')
-rw-r--r-- | doc/source/f2py/python-usage.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/f2py/python-usage.rst b/doc/source/f2py/python-usage.rst index dbcf11d2b..f004a1f75 100644 --- a/doc/source/f2py/python-usage.rst +++ b/doc/source/f2py/python-usage.rst @@ -15,12 +15,12 @@ Routine wrappers are callable ``fortran`` type objects while wrappers to Fortran data have attributes referring to data objects. All ``fortran`` type objects have an attribute ``_cpointer`` that contains a -``Capsule`` referring to the C pointer of the corresponding Fortran/C function -or variable at the C level. Such ``Capsule`` objects can be used as callback +``PyCapsule`` referring to the C pointer of the corresponding Fortran/C function +or variable at the C level. Such ``PyCapsule`` objects can be used as callback arguments for F2PY generated functions to bypass the Python C/API layer for calling Python functions from Fortran or C. This can be useful when the computational aspects of such functions are implemented in C or Fortran and -wrapped with F2PY (or any other tool capable of providing the ``Capsule`` +wrapped with F2PY (or any other tool capable of providing the ``PyCapsule`` containing a function). Consider a Fortran 77 file ```ftype.f``: |