summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-02-03 22:51:43 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-02-03 22:51:43 (GMT)
commitcab3d98ca19659698a29108aabb040f2741d1a2a (patch)
tree5f44e6c9c4b24b5112690c81e8cef8707a334406 /Misc
parente6a8074892810f551d9b1c1f16ebde9ebe9cc09d (diff)
downloadcpython-cab3d98ca19659698a29108aabb040f2741d1a2a.zip
cpython-cab3d98ca19659698a29108aabb040f2741d1a2a.tar.gz
cpython-cab3d98ca19659698a29108aabb040f2741d1a2a.tar.bz2
Ensure that PySet_Add() operates on a newly created frozenset, like PyTuple_SetItem does.
Add PyFrozenSet_Check(), which was not needed before; The list of Py*Set_Check* macros seems to be complete now. Add missing NEWS entries about all this.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 8dacce0..6291729 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1471,6 +1471,12 @@ Build
C API
-----
+- ``PySet_Add()`` can now modify a newly created frozenset. Similarly to
+ ``PyTuple_SetItem``, it can be used to populate a brand new frozenset; but
+ it does not steal a reference to the added item.
+
+- Added ``PySet_Check()`` and ``PyFrozenSet_Check()`` to the set API.
+
- Backport of PyUnicode_FromString(), _FromStringAndSize(), _Format and
_FormatV from Python 3.0. Made PyLong_AsSsize_t and PyLong_FromSsize_t
public functions.