diff options
author | Raymond Hettinger <python@rcn.com> | 2008-01-26 09:31:11 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-01-26 09:31:11 (GMT) |
commit | dee3f65d986de6ac7ec1e4b5292ef18ec14fc9f7 (patch) | |
tree | 0c2212d3e6fc887c270439f4359d396e3c8918b4 /Doc/c-api | |
parent | d3757233659f85b5ddecb286341c34b75b711645 (diff) | |
download | cpython-dee3f65d986de6ac7ec1e4b5292ef18ec14fc9f7.zip cpython-dee3f65d986de6ac7ec1e4b5292ef18ec14fc9f7.tar.gz cpython-dee3f65d986de6ac7ec1e4b5292ef18ec14fc9f7.tar.bz2 |
Revert PySet_Add() changes.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/set.rst | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst index 24caa10..e677c05 100644 --- a/Doc/c-api/set.rst +++ b/Doc/c-api/set.rst @@ -112,6 +112,9 @@ or :class:`frozenset` or instances of their subtypes. the *key* is unhashable. Raise :exc:`PyExc_SystemError` if *anyset* is not a :class:`set`, :class:`frozenset`, or an instance of a subtype. +The following functions are available for instances of :class:`set` or its +subtypes but not for instances of :class:`frozenset` or its subtypes. + .. cfunction:: int PySet_Add(PyObject *set, PyObject *key) @@ -121,14 +124,6 @@ or :class:`frozenset` or instances of their subtypes. Raise a :exc:`SystemError` if *set* is an not an instance of :class:`set` or its subtype. - .. versionchanged:: 2.6 - Now works with instances of :class:`frozenset` or its subtypes. - Like :cfunc:`PyTuple_SetItem` in that it can be used to fill-in the - values of brand new frozensets before they are exposed to other code. - -The following functions are available for instances of :class:`set` or its -subtypes but not for instances of :class:`frozenset` or its subtypes. - .. cfunction:: int PySet_Discard(PyObject *set, PyObject *key) |