Re: the pipe reading in Thread dose not work.

2008-06-01 Thread Jean-Paul Calderone
On Sun, 1 Jun 2008 07:32:39 -0700 (PDT), Leon zhang <[EMAIL PROTECTED]> wrote: #!/usr/bin/env python # -*- coding: utf-8 -*- import string, sys from threading import Thread import os import time class test_pipe(Thread): def __init__(self, fd): Thread.__init__(self) self.testfd

the pipe reading in Thread dose not work.

2008-06-01 Thread Leon zhang
#!/usr/bin/env python # -*- coding: utf-8 -*- import string, sys from threading import Thread import os import time class test_pipe(Thread): def __init__(self, fd): Thread.__init__(self) self.testfd = fd def run(self): print "started thread begin -" w