On Sat, 03 Feb 2007 05:38:43 -0800, Michel <[EMAIL PROTECTED]> wrote:
> So is this a bug?
Yes. Many thanks for finding it!!
> Should I file a report somewhere?
No need -- I just fixed it. (You just add one line in
SAGE_ROOT/devel/sage/sage/interfaces/maxima.py, i.e., put
self._expect.expect(self._prompt) right after
self._expect.expect(end).)
# HG changeset patch
# User William Stein <[EMAIL PROTECTED]>
# Date 1170522200 28800
# Node ID aa86e2a8cad6a3ccaed826668130dd235dddea03
# Parent 81b4ba22d72e400b5a585fd1089d3953c2e7516a
Fix bug in Maxima interface (not waiting for comp to finish) that michel
vandenbergh found.
diff -r 81b4ba22d72e -r aa86e2a8cad6 sage/interfaces/maxima.py
--- a/sage/interfaces/maxima.py Fri Feb 02 11:50:08 2007 -0800
+++ b/sage/interfaces/maxima.py Sat Feb 03 09:03:20 2007 -0800
@@ -465,6 +465,7 @@ class Maxima(Expect):
#print "in = '%s'"%line
E.sendline(line)
self._expect.expect(end)
+ self._expect.expect(self._prompt)
# We have timeouts below, since getting the end above
# means the computation completed, but on some systems
# (Cygwin) the expect interface can sometimes hang getting
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---