diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2020-05-17 15:30:00 +0800 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2020-05-17 15:32:24 +0800 |
commit | 0a2893149e88e5c5bb69a29f78a4ad262a08cd29 (patch) | |
tree | ac015c57e9717e45d26594e8eb451cc9c0bdcf1e /doc/source/user | |
parent | 50ce0fce70cac779919d97578381a9d762f42594 (diff) | |
download | numpy-0a2893149e88e5c5bb69a29f78a4ad262a08cd29.tar.gz |
DOC: Fix typos and cosmetic issues
Diffstat (limited to 'doc/source/user')
-rw-r--r-- | doc/source/user/c-info.how-to-extend.rst | 2 | ||||
-rw-r--r-- | doc/source/user/c-info.python-as-glue.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/user/c-info.how-to-extend.rst b/doc/source/user/c-info.how-to-extend.rst index 7aeed57cf..d75242092 100644 --- a/doc/source/user/c-info.how-to-extend.rst +++ b/doc/source/user/c-info.how-to-extend.rst @@ -163,7 +163,7 @@ ignored. The *args* argument contains all of the arguments passed in to the function as a tuple. You can do anything you want at this point, but usually the easiest way to manage the input arguments is to call :c:func:`PyArg_ParseTuple` (args, format_string, -addresses_to_C_variables...) or :c:func:`PyArg_UnpackTuple` (tuple, "name" , +addresses_to_C_variables...) or :c:func:`PyArg_UnpackTuple` (tuple, "name", min, max, ...). A good description of how to use the first function is contained in the Python C-API reference manual under section 5.5 (Parsing arguments and building values). You should pay particular diff --git a/doc/source/user/c-info.python-as-glue.rst b/doc/source/user/c-info.python-as-glue.rst index 7b9b096af..468df5377 100644 --- a/doc/source/user/c-info.python-as-glue.rst +++ b/doc/source/user/c-info.python-as-glue.rst @@ -671,7 +671,7 @@ simply have a shared library available to you). Items to remember are: - A shared library must be compiled in a special way ( *e.g.* using the ``-shared`` flag with gcc). -- On some platforms (*e.g.* Windows) , a shared library requires a +- On some platforms (*e.g.* Windows), a shared library requires a .def file that specifies the functions to be exported. For example a mylib.def file might contain:: @@ -802,7 +802,7 @@ Calling the function The function is accessed as an attribute of or an item from the loaded shared-library. Thus, if ``./mylib.so`` has a function named -``cool_function1`` , I could access this function either as: +``cool_function1``, I could access this function either as: .. code-block:: python |