[3.12] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH-113562) (GH-114644)

(cherry picked from commit 11c582235d)

Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
This commit is contained in:
Miss Islington (bot) 2024-01-27 12:29:26 +01:00 committed by GitHub
parent 84223a0e0a
commit 5c21f3d9e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1749,7 +1749,11 @@ set_issubset(PySetObject *so, PyObject *other)
Py_RETURN_TRUE;
}
PyDoc_STRVAR(issubset_doc, "Report whether another set contains this set.");
PyDoc_STRVAR(issubset_doc,
"issubset($self, other, /)\n\
--\n\
\n\
Test whether every element in the set is in other.");
static PyObject *
set_issuperset(PySetObject *so, PyObject *other)
@ -1781,7 +1785,11 @@ set_issuperset(PySetObject *so, PyObject *other)
Py_RETURN_TRUE;
}
PyDoc_STRVAR(issuperset_doc, "Report whether this set contains another set.");
PyDoc_STRVAR(issuperset_doc,
"issuperset($self, other, /)\n\
--\n\
\n\
Test whether every element in other is in the set.");
static PyObject *
set_richcompare(PySetObject *v, PyObject *w, int op)