]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Jan 2024 11:21:24 +0000 (12:21 +0100)
committerGitHub <noreply@github.com>
Sat, 27 Jan 2024 11:21:24 +0000 (11:21 +0000)
(cherry picked from commit 11c582235d86b6020710eff282eeb381a7bf7bb7)

Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
Objects/setobject.c

index 4b6a8b8dfb679d9919c03ffc8468a60c77eaff7a..5fcc957f49cd11b3257524b1850350d25b6711a4 100644 (file)
@@ -1761,7 +1761,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)
@@ -1793,7 +1797,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)