mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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.
This commit is contained in:
parent
46496f9d12
commit
d439fb304c
6 changed files with 20 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue