#6391: libGAP!  -- create a Cython library interface to gap
---------------------------+------------------------------------------------
   Reporter:  was          |       Owner:  was       
       Type:  enhancement  |      Status:  needs_work
   Priority:  major        |   Milestone:  sage-4.7  
  Component:  interfaces   |    Keywords:            
     Author:               |    Upstream:  N/A       
   Reviewer:               |      Merged:            
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by dimpase):

 Replying to [comment:38 iandrus]:

 well, it works as it should in p6, so that's something that got in p7.
 Indeed, with p6 I get
 {{{
 sage: gap('if 4>3 thenPrint("hi");\nfi')
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /private/tmp/<ipython console> in <module>()

 /usr/local/src/sage/current/local/lib/python2.6/site-
 packages/sage/interfaces/expect.pyc in __call__(self, x, name)
    1093
    1094         if isinstance(x, basestring):
 -> 1095             return cls(self, x, name=name)
    1096         try:
    1097             return self._coerce_from_special_method(x)

 /usr/local/src/sage/current/local/lib/python2.6/site-
 packages/sage/interfaces/expect.pyc in __init__(self, parent, value,
 is_name, name)
    1520             except (TypeError, KeyboardInterrupt, RuntimeError,
 ValueError), x:
    1521                 self._session_number = -1
 -> 1522                 raise TypeError, x
    1523         self._session_number = parent._session_number
    1524

 TypeError: Gap produced error output
 Syntax error: expression expected
 $sage3:=if 4>3 thenPrint("hi");fi;;
          ^

    executing $sage3:=if 4>3 thenPrint("hi");fi;;
 }}}

 which is basically how it should be: cf. sage: gap('if 4>3
 then\nPrint("hi");\nfi')

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6391#comment:39>
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