[Python-checkins] bpo-41832: Restore note about NULL in PyType_Slot.pfunc (GH-23243)

encukou webhook-mailer at python.org
Sat Nov 14 07:03:46 EST 2020


https://github.com/python/cpython/commit/2b39da49974bda523c5c1a8777bbe30dbafdcd12
commit: 2b39da49974bda523c5c1a8777bbe30dbafdcd12
branch: master
author: Hai Shi <shihai1992 at gmail.com>
committer: encukou <encukou at gmail.com>
date: 2020-11-14T13:03:42+01:00
summary:

bpo-41832: Restore note about NULL in PyType_Slot.pfunc (GH-23243)

files:
M Doc/c-api/type.rst

diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index f9037c89d8bd3..84c0a02046a65 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``.



More information about the Python-checkins mailing list