https://github.com/python/cpython/commit/5c21f3d9e5a1f798585ed9a642d04d036bcace77 commit: 5c21f3d9e5a1f798585ed9a642d04d036bcace77 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2024-01-27T11:29:26Z summary:
[3.12] gh-113560: Improve docstrings for set.issubset() and set.issuperset() (GH-113562) (GH-114644) (cherry picked from commit 11c582235d86b6020710eff282eeb381a7bf7bb7) Co-authored-by: Charlie Zhao <[email protected]> files: M Objects/setobject.c diff --git a/Objects/setobject.c b/Objects/setobject.c index 58f0ae73c0c403..763f9a3d204f53 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1749,7 +1749,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) @@ -1781,7 +1785,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) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
