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