-
The fix solves the problem, but remember to pass a binary file ("wb") to logfile_read, if you plan to receive UTF-8 chars.
2009-11-08 15:11:51 UTC by lskbr
-
I need to pass unicode strings. Pexpect (2.3, ubuntu package) fails thus:
>>> spokentext = u'Nation . Search the FOX Nation . czars \xb7 Health care \xb7 town halls \xb7 tea parties ...'
>>> p = pexpect.spawn('festival')
>>> p.expect('festival> ')
0
>>> p.sendline( spokentext )
Traceback (most recent call last):
File "", line 1, in
File...
2009-09-05 05:20:28 UTC by moaxey
-
There is no website for pexpect. It currently says "No input file specified" Please fix that. Thanks!
2009-06-10 14:43:17 UTC by orsenthil
-
This has fixed a problems I have had with curses application displaying incorrectly.
2009-06-05 17:22:08 UTC by nobody
-
I would like to use pexpect with rpyc (http://rpyc.wikidot.com/). The issue is the type checking done in pexpect compares for exact types not instances of a particular type. For example in compile_pattern_list() there is some code like:
if type(patterns) is not types.ListType:
...
Rather than checking for an exact type types.ListType, it could check for an instance of types.ListType and...
2009-05-06 23:01:38 UTC by bjcosta
-
interact logs writes to logfile, but not logfile_read. In _interact_copy:
if self.logfile is not None:
self.logfile.write (data)
self.logfile.flush()
should be:
if self.logfile is not None:
self.logfile.write (data)
self.logfile.flush()
if self.logfile_read is not None:
2009-05-01 04:54:45 UTC by nobody
-
I use pexpect a lot for SSH sessions. Some of the commands I run spew a lot of junk that I would just rather clear from the internal spawn buffer than have hanging around. It would be helpful to add a command to clear the current input buffer.
2009-04-17 14:55:04 UTC by master_daedalus
-
Could you please alter pexpect to support Python 3?.
2009-04-17 14:51:31 UTC by master_daedalus
-
See Bug ID: 1919476, "pexpect inside cron on solaris crashes". Crashes when run from cron on Solaris 8 and 10. Looks like /dev/tty is still being opened outside of a try block.
2009-04-17 01:48:41 UTC by nobody
-
Hello,
I have a strange problem with pexpect:
$ cat test.py
#!/usr/bin/python
import pexpect
child = pexpect.spawn("./test.pl")
while True:
try:
line = raw_input()
except EOFError:
break
child.sendline(line)
print child.readline().rstrip("\r\n")
child.close()
$ cat test.pl
#!/usr/bin/perl
# Replace all digits by __
while () {.
2009-04-01 02:31:23 UTC by nikratio