> <mailto:
francoi...@canterbury.ac.nz>> wrote:
>
> Yes pexpect. Same deal in sage-on-gentoo. I could add one of the
> patch from the current spkg on top of the latest version and it
> would work everywhere I could think of except the notebook. Plot
> would not be rendered. I don't remember trying with the new notebook.
>
> I would take slower too.
>
>
> That is possibly naive. When I evaluated updated pexpect last, "slower"
> was dramatically slower. I didn't want want every ptty call to
> maxima, octave, R, pari, etc., to be 100 times slower...
>
> Please at least do a test like this:
>
> sage: timeit('gp("2+2")')
>
> before and after switching.
>
> I had the impression that maybe the pexpect people had added a huge
> timeout or something to hack around race conditions they didn't
> understand, but I didn't look into it in detail (this was back in maybe
> 2007, and pexpect in sage worked fine). Their change may be fine for
> most applications of pexpect, e.g., scripting an ssh session. However,
> for Sage, where basic arithmetic may involve a call to pexpect, it is a
> very bad idea to throw in a 100ms timeout (say), since the net impact
> could be to slow down Sage by a factor of 200 for certain computations.