Thanks to visit codestin.com Credit goes to github.com
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 c2192a2 commit bfc1cd8Copy full SHA for bfc1cd8
1 file changed
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