pexpect: TIMEOUT no longer clears child.before
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed May 25 05:45:17 EDT 2011
En Thu, 19 May 2011 08:29:21 -0300, Adrian Casey <mail at 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
More information about the Python-list
mailing list