summaryrefslogtreecommitdiff
path: root/doc/source/f2py
diff options
context:
space:
mode:
authorRohit Goswami <rog32@hi.is>2022-10-10 15:51:24 +0200
committerRohit Goswami <rog32@hi.is>2022-10-10 15:51:24 +0200
commit72f573c9c71092ff3ed59f7818f1b178cb5c6deb (patch)
tree3368866d2c0b78663881a52baa5cd2339e0fbc83 /doc/source/f2py
parentc6f8fb2f390f5694501a2a955f232c57a042ce0e (diff)
downloadnumpy-72f573c9c71092ff3ed59f7818f1b178cb5c6deb.tar.gz
DOC: Replace CObject with Capsule consistently
Diffstat (limited to 'doc/source/f2py')
-rw-r--r--doc/source/f2py/python-usage.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/source/f2py/python-usage.rst b/doc/source/f2py/python-usage.rst
index c3379f6c5..dbcf11d2b 100644
--- a/doc/source/f2py/python-usage.rst
+++ b/doc/source/f2py/python-usage.rst
@@ -15,12 +15,13 @@ 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
-``CObject`` referring to the C pointer of the corresponding Fortran/C function
-or variable at the C level. Such ``CObjects`` 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 ``CObject`` of a function).
+``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
+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``
+containing a function).
Consider a Fortran 77 file ```ftype.f``: