Skip to content

break works after a sleep value below 1 #130166

@adsadafa

Description

@adsadafa

Bug report

Bug description:

# Add a code block here, if required
import time
input ("the ceiling says gullible on it!")
while True:
        print ("you are an idiot!")
        print ("hahahahahahahahah")
        time.sleep(.5)
        if input("IDIOT"):
         break

OS used: ubuntu 24.04.2
Found a bug in python3 where if the time.sleep is set to a value such as .5 then any break value may stop working in script (in the context of a loop).

CPython versions tested on:

3.14

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions