diff options
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 22:51:43 +0000 |
|---|---|---|
| committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 22:51:43 +0000 |
| commit | cab3d98ca19659698a29108aabb040f2741d1a2a (patch) | |
| tree | 5f44e6c9c4b24b5112690c81e8cef8707a334406 /Doc/c-api | |
| parent | e6a8074892810f551d9b1c1f16ebde9ebe9cc09d (diff) | |
| download | cpython-git-cab3d98ca19659698a29108aabb040f2741d1a2a.tar.gz | |
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/c-api')
| -rw-r--r-- | Doc/c-api/set.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst index 0aa6bcecda..c6b097dae4 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 |
