← 输入框|github.com|刷新
Skip to content

concurrent.futures.wait calls len() on an possible iterable #86104

Closed

Description

@rohitkg98
mannequin
BPO 41938
Nosy @rohitkg98
PRs
  • bpo-41938: fixed wait calling len on iterables #22555
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2020-10-05.02:02:57.246>
    labels = ['type-bug', 'library', '3.10']
    title = 'concurrent.futures.wait calls len() on an possible iterable'
    updated_at = <Date 2020-10-05.02:35:35.432>
    user = 'https://github.com/rohitkg98'

    bugs.python.org fields:

    activity = <Date 2020-10-05.02:35:35.432>
    actor = 'rohitkg98'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-10-05.02:02:57.246>
    creator = 'rohitkg98'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41938
    keywords = ['patch']
    message_count = 1.0
    messages = ['377991']
    nosy_count = 1.0
    nosy_names = ['rohitkg98']
    pr_nums = ['22555']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41938'
    versions = ['Python 3.10']

    Activity

    1. rohitkg98 commented on Oct 5, 2020

      rohitkg98mannequin
      MannequinAuthor

      fs argument could be an iterable, and calling len on it would raise an Exception.

      We are converting fs into a set anyways for set difference, and that too twice. we can just put an fs = set(fs).

      Let me know if we choose to go with that and I will make a PR ASAP.

      Thanks.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-bugAn unexpected behavior, bug, or error
      on Oct 5, 2020
    3. transferred this issue fromon Apr 10, 2022
    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

      3.10 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytopic-multiprocessingtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions