#12372: maxima.eval('1+1;;') hangs
--------------------------+-------------------------------------------------
   Reporter:  kcrisman    |          Owner:  was
       Type:  defect      |         Status:  new
   Priority:  minor       |      Milestone:     
  Component:  interfaces  |       Keywords:     
Work_issues:              |       Upstream:  N/A
   Reviewer:              |         Author:     
     Merged:              |   Dependencies:     
--------------------------+-------------------------------------------------

Comment(by nbruin):

 One way of looking at this example is that it's two commands: A
 grammatical and an erroneous one. The pexpect interface for maxima does
 not seem to support parsing the output of multiple commands:
 {{{
 sage: maxima.eval("1+2;3+4;")
 '3(%o17)7'
 }}}
 only a little better:
 {{{
 sage: from sage.interfaces.maxima_lib import maxima
 sage: sage: maxima.eval("1+2;3+4;")
 '37'
 sage: maxima.eval("1+2;;")
 '3'
 }}}
 This could be as easy as replacing ";<any whitespace>*;" by ";", but I'm
 not sure the slow-down of the extra regex is worth catching this corner-
 case.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12372#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en.

Reply via email to