thread1:
    while 1:
        buf = s.read()
        process(buf)

thread2:
    while 1:
        buf = getdata()
        s.write(buf)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to