Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up`print()` in a loop doesn't output until the loop is done #825
Comments
|
Hey Jean, I can't reproduce this. Maybe it's something else in the rest of your code. Could you share it with us? Also, what version of bpython are you using? |
|
Oh I missed a critical detail here, this is only when you paste the code in. Here's a smaller repro: copy this code and paste it into bpython. import time
for i in range(10):
print(i)
time.sleep(.1)
print('done') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I paste some code into the BPython REPL.
It looks like nothing happened, I don't even see the code I pasted, but it is running.
When I interrupt the loop, all this appears at once: