From f391db5b84ceb21c2c6614d7cf5934f7c75bccb7 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Thu, 12 Nov 2020 12:36:24 +0800 Subject: [PATCH 1/2] Update PyType_Slot.pfunc description info in type.rst --- Doc/c-api/type.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index f9037c89d8bd3b..7b9c87899c5fa6 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. + + May not be ``NULL``. From a6d8bd12f2af48c853c22f675fea058e4d078502 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Sat, 14 Nov 2020 12:46:25 +0800 Subject: [PATCH 2/2] apply petr's comment --- Doc/c-api/type.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 7b9c87899c5fa6..84c0a02046a65e 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -266,4 +266,4 @@ 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. - May not be ``NULL``. + Slots other than ``Py_tp_doc`` may not be ``NULL``.