diff options
author | Emanuele Gaifas <lelegaifax@gmail.com> | 2017-11-24 08:49:57 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-11-24 08:49:57 (GMT) |
commit | cdfe910e746e1d0fc43429b8cc3384a65a19b358 (patch) | |
tree | 43ef4825adef3ba82b94e2fe06d4484dd26b8ba7 /Doc/extending/extending.rst | |
parent | 3df02dbc8e197053105f9dffeae40b04ec66766e (diff) | |
download | cpython-cdfe910e746e1d0fc43429b8cc3384a65a19b358.zip cpython-cdfe910e746e1d0fc43429b8cc3384a65a19b358.tar.gz cpython-cdfe910e746e1d0fc43429b8cc3384a65a19b358.tar.bz2 |
Extending Python Doc minor updates (GH-4518)
Move footnote markers to be closer to the related terminology:
before the end of the sentence, instead of after.
Diffstat (limited to 'Doc/extending/extending.rst')
-rw-r--r-- | Doc/extending/extending.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index 7c27353..ea1c29a 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -40,7 +40,7 @@ A Simple Example Let's create an extension module called ``spam`` (the favorite food of Monty Python fans...) and let's say we want to create a Python interface to the C -library function :c:func:`system`. [#]_ This function takes a null-terminated +library function :c:func:`system` [#]_. This function takes a null-terminated character string as argument and returns an integer. We want this function to be callable from Python as follows:: @@ -917,7 +917,7 @@ It is also possible to :dfn:`borrow` [#]_ a reference to an object. The borrower of a reference should not call :c:func:`Py_DECREF`. The borrower must not hold on to the object longer than the owner from which it was borrowed. Using a borrowed reference after the owner has disposed of it risks using freed -memory and should be avoided completely. [#]_ +memory and should be avoided completely [#]_. The advantage of borrowing over owning a reference is that you don't need to take care of disposing of the reference on all possible paths through the code @@ -1088,7 +1088,7 @@ checking. The C function calling mechanism guarantees that the argument list passed to C functions (``args`` in the examples) is never *NULL* --- in fact it guarantees -that it is always a tuple. [#]_ +that it is always a tuple [#]_. It is a severe error to ever let a *NULL* pointer "escape" to the Python user. |