gh-110527: Improve `PySet_Clear` docs (#110528)

This commit is contained in:
Nikita Sobolev 2023-10-16 16:05:09 +03:00 committed by GitHub
parent c2192a2bee
commit bfc1cd8145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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.