-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Open
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
from threading import Thread
from time import sleep
def get_input():
while True:
input()
Thread(target=get_input, daemon=True).start()
sleep(0.001)This issue might be related to #112585
The above python script does not exit until input is given, despite input being called from a daemon Thread. Replacing input() with sys.stdin.read() or sys.stdin.readline() does not cause this issue, despite their similar function.
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
No status