FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-113560: Improve docs for `set.issubset` and `set.issuperset` by CharlieZhao95 · Pull Request #113562 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .c  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
12 changes: 10 additions & 2 deletions Objects/setobject.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,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)
Expand Down Expand Up @@ -1802,7 +1806,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)
Expand Down

Back | FazBrowse Home | New Git URL