summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-11-14 12:03:42 (GMT)
committerGitHub <noreply@github.com>2020-11-14 12:03:42 (GMT)
commit2b39da49974bda523c5c1a8777bbe30dbafdcd12 (patch)
treea78362a3df6d45c95695fcdde2521d4519863507
parent8836574a0f34ae81643c8af79bbb9062e332a4e3 (diff)
downloadcpython-2b39da49974bda523c5c1a8777bbe30dbafdcd12.zip
cpython-2b39da49974bda523c5c1a8777bbe30dbafdcd12.tar.gz
cpython-2b39da49974bda523c5c1a8777bbe30dbafdcd12.tar.bz2
bpo-41832: Restore note about NULL in PyType_Slot.pfunc (GH-23243)
-rw-r--r--Doc/c-api/type.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index f9037c8..84c0a02 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -265,3 +265,5 @@ The following functions and structs are used to create
The desired value of the slot. In most cases, this is a pointer
to a function.
+
+ Slots other than ``Py_tp_doc`` may not be ``NULL``.