diff options
author | Victor Stinner <vstinner@python.org> | 2020-11-09 12:40:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 12:40:47 (GMT) |
commit | 23c5f93b83f78f295313e137011edb18b24c37c2 (patch) | |
tree | 38cc104221c9e283bdb81f9511abe4fced97d67d /Doc/c-api/intro.rst | |
parent | a117167d8dc8fa673a4646f509551c7950f824e5 (diff) | |
download | cpython-23c5f93b83f78f295313e137011edb18b24c37c2.zip cpython-23c5f93b83f78f295313e137011edb18b24c37c2.tar.gz cpython-23c5f93b83f78f295313e137011edb18b24c37c2.tar.bz2 |
bpo-42294: Add borrowed/strong reference to doc glossary (GH-23206)
Add "borrowed reference" and "strong reference" to the documentation
glossary.
Enhance also Py_INCREF() and Py_NewRef() documentation.
Diffstat (limited to 'Doc/c-api/intro.rst')
-rw-r--r-- | Doc/c-api/intro.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 7ca8693..bae5ce1 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -326,7 +326,7 @@ when it's no longer needed---or passing on this responsibility (usually to its caller). When a function passes ownership of a reference on to its caller, the caller is said to receive a *new* reference. When no ownership is transferred, the caller is said to *borrow* the reference. Nothing needs to be done for a -borrowed reference. +:term:`borrowed reference`. Conversely, when a calling function passes in a reference to an object, there are two possibilities: the function *steals* a reference to the object, or it |