]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed a few obvious mistakes in c-api docs (GH-11184)
authorBeomsoo Kim <bluewhale8202@gmail.com>
Mon, 17 Dec 2018 12:57:03 +0000 (21:57 +0900)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 17 Dec 2018 12:57:03 +0000 (04:57 -0800)
I thought these simple changes doesn't need bpo number(Am I right..?).

Please refer to the commit message for detail.

Doc/c-api/intro.rst
Doc/c-api/refcounting.rst

index 15006100c7366acc86510e9ef29d186eb0c2b303..6bb2356f694ead4e4671cf45fac8a2c26ce6fcd2 100644 (file)
@@ -234,7 +234,7 @@ duration of the call.
 However, a common pitfall is to extract an object from a list and hold on to it
 for a while without incrementing its reference count. Some other operation might
 conceivably remove the object from the list, decrementing its reference count
-and possible deallocating it. The real danger is that innocent-looking
+and possibly deallocating it. The real danger is that innocent-looking
 operations may invoke arbitrary Python code which could do this; there is a code
 path which allows control to flow back to the user from a :c:func:`Py_DECREF`, so
 almost any operation is potentially dangerous.
index 4f512ecdbe9fb074651e537caa7093dd1d9b410d..225a1feb2506844af346a4025fd2365d44d7a712 100644 (file)
@@ -58,8 +58,8 @@ objects.
    the macro carefully uses a temporary variable and sets the argument to *NULL*
    before decrementing its reference count.
 
-   It is a good idea to use this macro whenever decrementing the value of a
-   variable that might be traversed during garbage collection.
+   It is a good idea to use this macro whenever decrementing the reference
+   count of an object that might be traversed during garbage collection.
 
 
 The following functions are for runtime dynamic embedding of Python: