Skip to content

Python 3.13 Threading issues #126874

@Apprisco

Description

@Apprisco

Bug report

Bug description:

from threading import Thread
import time

def forward(a):
    while True:
        print(a)
        time.sleep(1.0)
# print(c.vk['mclick'])
thread=[Thread(target=forward,args=(i,),daemon=True) for i in range(10)]
for t in thread: t.start()

When daemon=True, thread runs for 1 round then immediately exits main thread without errors.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions