We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PySet_Clear
1 parent 7de3c8b commit b4ed730Copy full SHA for b4ed730
Doc/c-api/set.rst
@@ -163,4 +163,6 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
163
164
.. c:function:: int PySet_Clear(PyObject *set)
165
166
- Empty an existing set of all elements.
+ Empty an existing set of all elements. Return ``0`` on
167
+ success. Return ``-1`` and raise :exc:`SystemError` if *set* is not an instance of
168
+ :class:`set` or its subtype.
0 commit comments