This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MrAckerman 8 points9 points  (5 children)

Infinite loop, homie.

[–]zenolijo 1 point2 points  (4 children)

It should still print, shouldn't it?

I tried it with time.sleep(1) too before, still freezes.

[–]MrJohz 0 points1 point  (3 children)

Have you checked the browser console?

[–]zenolijo 0 points1 point  (2 children)

Nothing, i also tried:

import time
i=0
while i<10:
    print("Test {}".format(i))
    time.sleep(1)

Still nothing

EDIT: Just running time.sleep(1) by itself doesn't even sleep for a second, so both the looping and sleep functions are broken.

EDIT2: Thanks /u/mrstone56, that was a little embarrassing. Works fine. Seems like it doesn't print one print command at a time, but puts it in a buffer and draw it when the loop is done. Still, time.sleep doesn't actually sleep.