summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-09-19 22:38:15 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-09-19 22:38:15 +0200
commitc85e31e6331efe96034fe76c5a6b9d60698c0f23 (patch)
tree667f39fcc57ef11ec6929074e65a2a7d130b5307 /doc
parent882c02853f0cc3d08e46b25ff199bd10061e340f (diff)
parent0cabea84fa0c21ca614f9187e56318f328d964b1 (diff)
downloadnumpy-c85e31e6331efe96034fe76c5a6b9d60698c0f23.tar.gz
Merge pull request #5076 from kanhua/kh_fix
DOC: Minor fix on c-info.python-as-glue.rst
Diffstat (limited to 'doc')
-rw-r--r--doc/source/user/c-info.python-as-glue.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/source/user/c-info.python-as-glue.rst b/doc/source/user/c-info.python-as-glue.rst
index 985d478e0..0560c005e 100644
--- a/doc/source/user/c-info.python-as-glue.rst
+++ b/doc/source/user/c-info.python-as-glue.rst
@@ -249,8 +249,14 @@ necessary to tell f2py that the value of n depends on the input a (so
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``::
+
+ f2py -c add.pyf add.f95
+
The new interface has docstring:
+ >>> import add
>>> print add.zadd.__doc__
zadd - Function signature:
c = zadd(a,b)