Skip to content

Commit da53102

Browse files
committed
Improve PySet_Clear docs
1 parent 7e30821 commit da53102

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/c-api/set.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,6 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
163163
164164
.. c:function:: int PySet_Clear(PyObject *set)
165165
166-
Empty an existing set of all elements.
166+
Empty an existing set of all elements. Return ``0`` on
167+
success or ``-1`` on failure. Raise :exc:`SystemError` if *set* is not an
168+
instance of :class:`set` or its subtype.

0 commit comments

Comments
 (0)