Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c21f3d

Browse files
[3.12] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH-113562) (GH-114644)
(cherry picked from commit 11c5822) Co-authored-by: Charlie Zhao <[email protected]>
1 parent 84223a0 commit 5c21f3d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Objects/setobject.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,11 @@ set_issubset(PySetObject *so, PyObject *other)
17491749
Py_RETURN_TRUE;
17501750
}
17511751

1752-
PyDoc_STRVAR(issubset_doc, "Report whether another set contains this set.");
1752+
PyDoc_STRVAR(issubset_doc,
1753+
"issubset($self, other, /)\n\
1754+
--\n\
1755+
\n\
1756+
Test whether every element in the set is in other.");
17531757

17541758
static PyObject *
17551759
set_issuperset(PySetObject *so, PyObject *other)
@@ -1781,7 +1785,11 @@ set_issuperset(PySetObject *so, PyObject *other)
17811785
Py_RETURN_TRUE;
17821786
}
17831787

1784-
PyDoc_STRVAR(issuperset_doc, "Report whether this set contains another set.");
1788+
PyDoc_STRVAR(issuperset_doc,
1789+
"issuperset($self, other, /)\n\
1790+
--\n\
1791+
\n\
1792+
Test whether every element in other is in the set.");
17851793

17861794
static PyObject *
17871795
set_richcompare(PySetObject *v, PyObject *w, int op)

0 commit comments

Comments
 (0)