diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 22:51:43 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 22:51:43 (GMT) |
commit | cab3d98ca19659698a29108aabb040f2741d1a2a (patch) | |
tree | 5f44e6c9c4b24b5112690c81e8cef8707a334406 /Misc | |
parent | e6a8074892810f551d9b1c1f16ebde9ebe9cc09d (diff) | |
download | cpython-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/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |