Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5772 > unrolled thread
| Started by | Adrian Casey <mail@agcasey.com> |
|---|---|
| First post | 2011-05-19 20:59 +0930 |
| Last post | 2011-05-25 06:45 -0300 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | Adrian Casey <mail@agcasey.com> |
|---|---|
| Date | 2011-05-19 20:59 +0930 |
| Subject | pexpect: TIMEOUT no longer clears child.before |
| Message-ID | <ma7Bp.4504$aH5.3721@viwinnwfe02.internal.bigpond.com> |
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.
[toc] | [next] | [standalone]
| From | "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> |
|---|---|
| Date | 2011-05-25 06:45 -0300 |
| Message-ID | <mailman.2065.1306316616.9059.python-list@python.org> |
| In reply to | #5772 |
En Thu, 19 May 2011 08:29:21 -0300, Adrian Casey <mail@agcasey.com> escribió: > 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? Try contacting the author: www.noah.org -- Gabriel Genellina
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web