[3.12] gh-110527: Improve PySet_Clear docs (GH-110528) (#110928)

gh-110527: Improve `PySet_Clear` docs (GH-110528)
(cherry picked from commit bfc1cd8145)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2023-10-16 15:14:52 +02:00 committed by GitHub
parent 7de3c8b7b6
commit b4ed73042e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.