8000 [3.11] gh-113560: Improve docstrings for set.issubset() and set.issup… · python/cpython@2179948 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2179948

Browse files
[3.11] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH-113562) (GH-114643)
(cherry picked from commit 11c5822) Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
1 parent 8884a21 commit 2179948

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
@@ -1761,7 +1761,11 @@ set_issubset(PySetObject *so, PyObject *other)
17611761
Py_RETURN_TRUE;
17621762
}
17631763

1764-
PyDoc_STRVAR(issubset_doc, "Report whether another set contains this set.");
1764+
PyDoc_STRVAR(issubset_doc,
1765+
"issubset($self, other, /)\n\
1766+
--\n\
1767+
\n\
1768+
Test whether every element in the set is in other.");
17651769

17661770
static PyObject *
17671771
set_issuperset(PySetObject *so, PyObject *other)
@@ -1793,7 +1797,11 @@ set_issuperset(PySetObject *so, PyObject *other)
17931797
Py_RETURN_TRUE;
17941798
}
17951799

1796-
PyDoc_STRVAR(issuperset_doc, "Report whether this set contains another set.");
1800+
PyDoc_STRVAR(issuperset_doc,
1801+
"issuperset($self, other, /)\n\
1802+
--\n\
1803+
\n\
1804+
Test whether every element in other is in the set.");
17971805

17981806
static PyObject *
17991807
set_richcompare(PySetObject *v, PyObject *w, int op)

0 commit comments

Comments
 (0)
0