mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Revert PySet_Add() changes.
This commit is contained in:
parent
d375723365
commit
dee3f65d98
3 changed files with 20 additions and 16 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue