summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>2020-01-29 11:20:53 (GMT)
committerGitHub <noreply@github.com>2020-01-29 11:20:53 (GMT)
commite1e80002e28e1055f399a20918c49d50d093709e (patch)
tree67dbe51a2c6e242f1e68019a611257fe88c2e02e /Misc
parentd07d9f4c43bc85a77021bcc7d77643f8ebb605cf (diff)
downloadcpython-e1e80002e28e1055f399a20918c49d50d093709e.zip
cpython-e1e80002e28e1055f399a20918c49d50d093709e.tar.gz
cpython-e1e80002e28e1055f399a20918c49d50d093709e.tar.bz2
bpo-39153: Clarify C API *SetItem refcounting semantics (GH-18220)
Some of the *SetItem methods in the C API steal a reference to the given value. This annotates the better behaved ones to assure the reader that these are not the ones with the inconsistent behaviour. * 📜🤖 Added by blurb_it. * make docs consistent with signature Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Documentation/2020-01-27-22-24-51.bpo-39153.Pjl8jV.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Documentation/2020-01-27-22-24-51.bpo-39153.Pjl8jV.rst b/Misc/NEWS.d/next/Documentation/2020-01-27-22-24-51.bpo-39153.Pjl8jV.rst
new file mode 100644
index 0000000..95be00b
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2020-01-27-22-24-51.bpo-39153.Pjl8jV.rst
@@ -0,0 +1,5 @@
+Clarify refcounting semantics for the following functions:
+- PyObject_SetItem
+- PyMapping_SetItemString
+- PyDict_SetItem
+- PyDict_SetItemString \ No newline at end of file