summaryrefslogtreecommitdiffstats
path: root/Doc
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 /Doc
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 'Doc')
-rw-r--r--Doc/c-api/set.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst
index 0aa6bce..c6b097d 100644
--- a/Doc/c-api/set.rst
+++ b/Doc/c-api/set.rst
@@ -58,6 +58,13 @@ the constructor functions work with any iterable Python object.
.. versionadded:: 2.6
+.. cfunction:: int PyFrozenSet_Check(PyObject *p)
+
+ Return true if *p* is a :class:`frozenset` object or an instance of a
+ subtype.
+
+ .. versionadded:: 2.6
+
.. cfunction:: int PyAnySet_Check(PyObject *p)
Return true if *p* is a :class:`set` object, a :class:`frozenset` object, or an