But the help(set.issubset) does not emphasize this. It only explains that it could test the inclusion relationship between two sets.
>>>help(set.issubset)
Helponmethod_descriptor:
issubset(...)
Reportwhetheranothersetcontainsthisset.
# Actually, it could accept an iterable>>> {'a'}.issubset('abc')
True
The same problem comes with the help(set.issuperset).
Activity
gh-113560: Improve docstrings for set.issubset() and set.issuperset() (…
pythongh-113560: Improve docstrings for set.issubset() and set.issupe…
pythongh-113560: Improve docstrings for set.issubset() and set.issupe…
[3.11] gh-113560: Improve docstrings for set.issubset() and set.issup…
[3.12] gh-113560: Improve docstrings for set.issubset() and set.issup…
pythongh-113560: Improve docstrings for set.issubset() and set.issupe…