diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-02-20 18:03:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 18:03:08 (GMT) |
commit | d439fb304ca3098aab1ed0a314996f9d29347b21 (patch) | |
tree | 10d231bac1b2f609a1179cbe8e6e06610080feb0 /Doc/c-api | |
parent | 46496f9d12582bf11f4911ad0f23315d6f277907 (diff) | |
download | cpython-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.rst | 6 |
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) |