Python's time.sleep() hangs -


i have test script sleeps random amount of seconds, between 1 , 180 seconds. test program hang more 3 minutes.

so changed code sleep 60 seconds (1 minute) , ran script. after 20 hours (!!!), code still hanging on time.sleep().

the code is

downtime = 60 time.sleep(downtime) 

why python hang forever on time.sleep(60)?

you use 2 different variables downtime , downtime. probably, downtime greater 60


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -