summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSiba Smarak Panigrahi <sibasmarak.p@gmail.com>2020-05-16 22:24:41 +0530
committerGitHub <noreply@github.com>2020-05-16 12:54:41 -0400
commit892a3fa83ca8ef2db9d896efb482f88ad21d6b5b (patch)
treed33ce83f04cf98a3730377929f4d364ad58cecc1 /doc
parent3ba84d2fedf30aba7d47f81e36bbf265745c4e1c (diff)
downloadnumpy-892a3fa83ca8ef2db9d896efb482f88ad21d6b5b.tar.gz
DOC: Updated the f2py section of the "Using Python as Glue" page. (#16258)
* Replace print statements with print function calls. * Fix the filename in one of the commands: it is "add.f", not "add.f95".
Diffstat (limited to 'doc')
-rw-r--r--doc/source/user/c-info.python-as-glue.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/user/c-info.python-as-glue.rst b/doc/source/user/c-info.python-as-glue.rst
index 7b9b096af..201bd8417 100644
--- a/doc/source/user/c-info.python-as-glue.rst
+++ b/doc/source/user/c-info.python-as-glue.rst
@@ -170,7 +170,7 @@ add (zadd, cadd, dadd, sadd). The docstring of each method contains
information about how the module method may be called::
>>> import add
- >>> print add.zadd.__doc__
+ >>> print(add.zadd.__doc__)
zadd - Function signature:
zadd(a,b,c,n)
Required arguments:
@@ -241,14 +241,14 @@ that it won't try to create the variable n until the variable a is
created).
After modifying ``add.pyf``, the new python module file can be generated
-by compiling both ``add.f95`` and ``add.pyf``::
+by compiling both ``add.f`` and ``add.pyf``::
- f2py -c add.pyf add.f95
+ f2py -c add.pyf add.f
The new interface has docstring::
>>> import add
- >>> print add.zadd.__doc__
+ >>> print(add.zadd.__doc__)
zadd - Function signature:
c = zadd(a,b)
Required arguments: