diff options
author | Éric Araujo <merwok@netwok.org> | 2014-03-12 23:51:00 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2014-03-12 23:51:00 (GMT) |
commit | fa5e6e4773ea959a7cc354d54c50df507cf005c3 (patch) | |
tree | 31b2a5ad1a614394e303e171233c55d94646317f /Doc/c-api | |
parent | d0fc83d5ebf860664ab2156549d3eb98a50212cd (diff) | |
download | cpython-fa5e6e4773ea959a7cc354d54c50df507cf005c3.zip cpython-fa5e6e4773ea959a7cc354d54c50df507cf005c3.tar.gz cpython-fa5e6e4773ea959a7cc354d54c50df507cf005c3.tar.bz2 |
Fix note markup (#16805).
Patch by Tshepang Lekhonkhobe, reviewed by Georg Brandl.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/arg.rst | 1 | ||||
-rw-r--r-- | Doc/c-api/init.rst | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst index 58c0f3d..28a434e 100644 --- a/Doc/c-api/arg.rst +++ b/Doc/c-api/arg.rst @@ -45,6 +45,7 @@ in any early abort case). Unless otherwise stated, buffers are not NUL-terminated. .. note:: + For all ``#`` variants of formats (``s#``, ``y#``, etc.), the type of the length argument (int or :c:type:`Py_ssize_t`) is controlled by defining the macro :c:macro:`PY_SSIZE_T_CLEAN` before including diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 705509f..4dad2c8 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -548,6 +548,7 @@ code, or when embedding the Python interpreter: .. index:: module: _thread .. note:: + When only the main thread exists, no GIL operations are needed. This is a common situation (most Python programs do not use threads), and the lock operations slow the interpreter down a bit. Therefore, the lock is not |