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

`help(set.issubset)` does not tell the truth that it could accept any iterable as an argument · Issue #113560 · python/cpython · GitHub

Repository navigation

help(set.issubset) does not tell the truth that it could accept any iterable as an argument #113560

Closed

Description

Documentation

The set docs tell us:

Note, the non-operator versions of union(), intersection(), difference(), symmetric_difference(), issubset(), and issuperset() methods will accept any iterable as an argument.

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)
Help on method_descriptor:

issubset(...)
    Report whether another set contains this set.

# Actually, it could accept an iterable
>>> {'a'}.issubset('abc')
True

The same problem comes with the help(set.issuperset).

Linked PRs

Activity

  1. added a commit that references this issue on Jan 27, 2024
  2. added 2 commits that reference this issue on Jan 27, 2024
  3. added 2 commits that reference this issue on Jan 27, 2024
  4. added a commit that references this issue on Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL