summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-02-20 18:03:08 (GMT)
committerGitHub <noreply@github.com>2021-02-20 18:03:08 (GMT)
commitd439fb304ca3098aab1ed0a314996f9d29347b21 (patch)
tree10d231bac1b2f609a1179cbe8e6e06610080feb0 /Doc/c-api
parent46496f9d12582bf11f4911ad0f23315d6f277907 (diff)
downloadcpython-d439fb304ca3098aab1ed0a314996f9d29347b21.zip
cpython-d439fb304ca3098aab1ed0a314996f9d29347b21.tar.gz
cpython-d439fb304ca3098aab1ed0a314996f9d29347b21.tar.bz2
bpo-43277: Add PySet_CheckExact to the C-API (GH-24598)
For some mysterious reason we have PySet_Check, PyFrozenSet_Check, PyAnySet_Check, PyAnySet_CheckExact and PyFrozenSet_CheckExact but no PySet_CheckExact.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/set.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst
index 84f34e7..eca19c4 100644
--- a/Doc/c-api/set.rst
+++ b/Doc/c-api/set.rst
@@ -65,6 +65,12 @@ the constructor functions work with any iterable Python object.
Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an
instance of a subtype. This function always succeeds.
+.. c:function:: int PySet_CheckExact(PyObject *p)
+
+ Return true if *p* is a :class:`set` object but not an instance of a
+ subtype. This function always succeeds.
+
+ .. versionadded:: 3.10
.. c:function:: int PyAnySet_CheckExact(PyObject *p)