diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-01-27 11:21:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 11:21:24 (GMT) |
commit | 21799488bcb893d563a03d1c3e99e4195795c7ab (patch) | |
tree | f944cf81095c661c2da9aafbca46ab3cc942bfe7 | |
parent | 8884a214174b8041071b14b7628d00ac85c555b3 (diff) | |
download | cpython-21799488bcb893d563a03d1c3e99e4195795c7ab.zip cpython-21799488bcb893d563a03d1c3e99e4195795c7ab.tar.gz cpython-21799488bcb893d563a03d1c3e99e4195795c7ab.tar.bz2 |
[3.11] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH-113562) (GH-114643)
(cherry picked from commit 11c582235d86b6020710eff282eeb381a7bf7bb7)
Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
-rw-r--r-- | Objects/setobject.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index 4b6a8b8..5fcc957 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -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) |