Skip to content

threading.Thread: documentation says group "should be None", but implementation enforces it with AssertionError #150232

@My-ABC

Description

@My-ABC

Bug report

Bug description:

Bug report

Bug description:

The documentation for threading.Thread states that the group parameter "should be None". However, the actual implementation uses assert group is None and raises AssertionError if a non-None value is passed.

Reproduction:

import threading
threading.Thread(1)  # any non-None value

CPython versions tested on:

3.14

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions