I'm frustrated by the nature of time.sleep(), which prevents the script from doing anything else during the allotted time period. For example, I have:
while True: checkSomething() time.sleep(0.1) print 'hello'
In this case, "hello" is never printed. I really want to check something every few milliseconds, but I also need my program to be doing other things! Please help.