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/whatsnew | |
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/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 2ceb26f..d353f33 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -893,6 +893,9 @@ New Features * The :c:func:`PyType_GetSlot` function can accept static types. (Contributed by Hai Shi and Petr Viktorin in :issue:`41073`.) +* Add a new :c:func:`PySet_CheckExact` function to the C-API to check if an + object is an instance of :class:`set` but not an instance of a subtype. + (Contributed by Pablo Galindo in :issue:`43277`.) Porting to Python 3.10 ---------------------- |