mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
gh-110527: Improve PySet_Clear
docs (#110528)
This commit is contained in:
parent
c2192a2bee
commit
bfc1cd8145
1 changed files with 3 additions and 1 deletions
|
@ -163,4 +163,6 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
|
|||
|
||||
.. c:function:: int PySet_Clear(PyObject *set)
|
||||
|
||||
Empty an existing set of all elements.
|
||||
Empty an existing set of all elements. Return ``0`` on
|
||||
success. Return ``-1`` and raise :exc:`SystemError` if *set* is not an instance of
|
||||
:class:`set` or its subtype.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue