Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5772
| From | Adrian Casey <mail@agcasey.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | pexpect: TIMEOUT no longer clears child.before |
| Message-ID | <ma7Bp.4504$aH5.3721@viwinnwfe02.internal.bigpond.com> (permalink) |
| Date | 2011-05-19 20:59 +0930 |
| Organization | BigPond |
The behaviour of pexpect has changed between version 2.1 and 2.3. In version 2.1, the following code would result in child.before being cleared -: >>>child.expect(pexpect.TIMEOUT,1) In version 2.3, this is no longer the case. No matter how many times the above code is run, child.before continues to hold the output from previous commands. It is important to be able to clear the contents of child.before between each command. What is the correct way to do this in version 2.3? Adrian.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
pexpect: TIMEOUT no longer clears child.before Adrian Casey <mail@agcasey.com> - 2011-05-19 20:59 +0930 Re: pexpect: TIMEOUT no longer clears child.before "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-05-25 06:45 -0300
csiph-web