#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 iandrus):

 I got it into a bad state:
 {{{
 sage: import sage.libs.gap.gap as g
 sage: g.libgap('0')
 0
 sage: g.libgap('if 4>3 then\nPrint("hi");\nfi')
 NULL
 sage: g.libgap('if 4>3 thenPrint("hi");\nfi')
 ---------------------------------------------------------------------------
 AssertionError                            Traceback (most recent call
 last)

 /Users/gvol/<ipython console> in <module>()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/structure/parent.so in sage.structure.parent.Parent.__call__
 (sage/structure/parent.c:6816)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3254)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3157)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/libs/gap/gap.so in
 sage.libs.gap.gap.Gap._element_constructor_ (sage/libs/gap/gap.c:6866)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/libs/gap/gap.so in sage.libs.gap.gap.libgap_eval
 (sage/libs/gap/gap.c:2976)()

 AssertionError: The return status of ReadEvalCommand must be zero.
 sage: g.libgap('0')
 ---------------------------------------------------------------------------
 AssertionError                            Traceback (most recent call
 last)

 /Users/gvol/<ipython console> in <module>()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/structure/parent.so in sage.structure.parent.Parent.__call__
 (sage/structure/parent.c:6816)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3254)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3157)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/libs/gap/gap.so in
 sage.libs.gap.gap.Gap._element_constructor_ (sage/libs/gap/gap.c:6866)()

 /Users/gvol/vcs/cur-sage/local/lib/python2.6/site-
 packages/sage/libs/gap/gap.so in sage.libs.gap.gap.libgap_eval
 (sage/libs/gap/gap.c:2976)()

 AssertionError: The return status of ReadEvalCommand must be zero.
 sage:
 }}}

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