If you print "interval\n" instead it works as expected.
In reply to Re: sleep in infinite loop by moritz in thread sleep in infinite loop by my_nihilist