10000 gh-113560: Improve docstrings for set.issubset() and set.issuperset()… · python/cpython@11c5822 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11c5822

Browse files
gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH-113562)
1 parent 6a8944a commit 11c5822

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
@@ -1770,7 +1770,11 @@ set_issubset(PySetObject *so, PyObject *other)
17701770
Py_RETURN_TRUE;
17711771
}
17721772

1773-
PyDoc_STRVAR(issubset_doc, "Report whether another set contains this set.");
1773+
PyDoc_STRVAR(issubset_doc,
1774+
"issubset($self, other, /)\n\
1775+
--\n\
1776+
\n\
1777+
Test whether every element in the set is in other.");
17741778

17751779
static PyObject *
17761780
set_issuperset(PySetObject *so, PyObject *other)
@@ -1802,7 +1806,11 @@ set_issuperset(PySetObject *so, PyObject *other)
18021806
Py_RETURN_TRUE;
18031807
}
18041808

1805-
PyDoc_STRVAR(issuperset_doc, "Report whether this set contains another set.");
1809+
PyDoc_STRVAR(issuperset_doc,
1810+
"issuperset($self, other, /)\n\
1811+
--\n\
1812+
\n\
1813+
Test whether every element in other is in the set.");
18061814

18071815
static PyObject *
18081816
set_richcompare(PySetObject *v, PyObject *w, int op)

0 commit comments

Comments
 (0)
0