#13178: problem with newlines in gap eval
--------------------------+-------------------------------------------------
Reporter: kcrisman | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-5.2
Component: interfaces | Keywords: gap
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
--------------------------+-------------------------------------------------
See [https://groups.google.com/forum/?fromgroups#!topic/sage-
support/h_JO1Jgx9a4 this sage-support thread].
Basically,
{{{
str1 = r"""
for n in [1..10] do
for m in [1..10] do
Print(m*n);
Print(" - ");
od;
od;
"""
gap.eval(str1)
}}}
erroneously adds newlines, while
{{{
str = r"""
for n in [1..10] do
for m in [1..10] do
Print(m*n);
Print(" - ");
od;
Print("\n");
od;
"""
gap.eval(str)
}}}
doesn't return anything at all (well, the empty string).
{{{
gap.eval(str,newlines=False)
}}}
This makes (for instance) a lot of stuff not work in the notebook with
%gap.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13178>
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.