Problem description:
time.sleep() stacks immediately with the print statements and the order of the code is ignored in this. Code used is shown below:
import time
print("Processing" , sep = "" , end = "")
time.sleep(2)
print("." , sep = "" , end = "")
time.sleep(2)
print("." , sep = "" , end = "")
time.sleep(2)
print("." , sep = "" , end = "")
Expected behavior:
“processing” - 2 second interval - “.” - 2 second interval - “.” - 2 second interval - “.”
Actual behavior:
6 second wait - “processing…”
Steps to reproduce:
create a print statement with an end=“” clause at the end, use time.sleep() and then print another statement
Bug appears at this link:
https://replit.com/@RobertoSilvaPer/Bug-report#main.py
Browser/OS/Device:
Microsoft Edge/Windows 11/ Dell OptiPlex 3280 AIO x64-based PC