Pexpect Timeout With Large Block Of Data From Child
I am using pexpect to call another python script (py27) that prompts for raw_input. I'm trying to build a GUI wrapper around this script without modifying it. The problem I have is
Solution 1:
If you are sure that prompt will appear definitely and your scenario is ok to wait forever then using timeout=None in the expect will wait indefinitely for the prompt to appear. But yes waiting indefinitely has its own negative consequences. I would suggest to use this approach only if 100% sure that prompt will appear and waiting indefinitely is not a problem.
Post a Comment for "Pexpect Timeout With Large Block Of Data From Child"