From: John M. <joh...@ya...> - 2001-03-22 15:06:03
|
I added a simple call to sleep(2) in the run() mathod of some threads. The threads now terminate (w/o exception) when the sleep() is reached. It's not a critical problem for me. I was just using the sleep() during debugging. I get the problem when using either Jython 2.0 or 2.1.a1. Here are the only references to sleep() in my program. So I don't think I've redefined it. $ grep sleep conv.py from time import time, localtime, sleep sleep(2) $ I tried a small test program (attached) but it works as it should. So it's something to do with my application. I tried "import time" and calling time.sleep(2) instead of sleep(2) but that didn't help. I tried printing the value of `sleep` before calling it. I got the same sort of output from both my application that has the problem and and test program that runs okay. Here's an example: sleep=<java function sleep at 1203696510> Any suggestions? __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |