Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6219

Re: pexpect: TIMEOUT no longer clears child.before

From "Gabriel Genellina" <gagsl-py2@yahoo.com.ar>
Subject Re: pexpect: TIMEOUT no longer clears child.before
Date 2011-05-25 06:45 -0300
References <ma7Bp.4504$aH5.3721@viwinnwfe02.internal.bigpond.com>
Newsgroups comp.lang.python
Message-ID <mailman.2065.1306316616.9059.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


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