I have same problem with expect :-( I am calling:
l=[expected] result=self.telnet.expect(l,timeout) it works in most cases, but sometimes (with exacly same "expected" value) it returns -1,Nil,"some text" the point is, that: - connection is still active, so it should read more! - it doesn't wait timeout seconds (I used time.time() to check that, time is zero, timeout is about 20s)! In what case "expect" or "read_until" will stop reading without waiting for timeout? -- Free Software - find interesting programs and change them NetHack - meet interesting creatures, kill them and eat their bodies Usenet - meet interesting people from all over the world and flame them Decopter - unrealistic helicopter simulator, get it from http://decopter.sf.net -- http://mail.python.org/mailman/listinfo/python-list