Commit 05c1b387 authored by Beomsoo Kim's avatar Beomsoo Kim Committed by Miss Islington (bot)

Fixed a few obvious mistakes in c-api docs (GH-11184)



I thought these simple changes doesn't need bpo number(Am I right..?).

Please refer to the commit message for detail.
parent 3ab064e8
...@@ -234,7 +234,7 @@ duration of the call. ...@@ -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 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 for a while without incrementing its reference count. Some other operation might
conceivably remove the object from the list, decrementing its reference count 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 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 path which allows control to flow back to the user from a :c:func:`Py_DECREF`, so
almost any operation is potentially dangerous. almost any operation is potentially dangerous.
......
...@@ -58,8 +58,8 @@ objects. ...@@ -58,8 +58,8 @@ objects.
the macro carefully uses a temporary variable and sets the argument to *NULL* the macro carefully uses a temporary variable and sets the argument to *NULL*
before decrementing its reference count. before decrementing its reference count.
It is a good idea to use this macro whenever decrementing the value of a It is a good idea to use this macro whenever decrementing the reference
variable that might be traversed during garbage collection. count of an object that might be traversed during garbage collection.
The following functions are for runtime dynamic embedding of Python: The following functions are for runtime dynamic embedding of Python:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment