#19876: maxima eval using file is broken
--------------------------+----------------------------
Reporter: vbraun | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-7.0
Component: interfaces | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
--------------------------+----------------------------
Long inputs break `maxima.eval` once the eval-using-file threshold is
crossed:
{{{
sage:
maxima.eval('1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1')
'128'
sage:
maxima.eval('1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1')
---------------------------------------------------------------------------
IndexError Traceback (most recent call
last)
<ipython-input-35-115dfacfa5ea> in <module>()
----> 1
maxima.eval('1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1')
/home/vbraun/Code/sage.git/local/lib/python2.7/site-
packages/sage/interfaces/expect.pyc in eval(self, code, strip,
synchronize, locals, allow_use_file, split_lines, **kwds)
1234 if (split_lines == "nofile" and allow_use_file and
1235 self._eval_using_file_cutoff and len(code)
> self._eval_using_file_cutoff):
-> 1236 return self._eval_line_using_file(code)
1237 elif split_lines:
1238 return '\n'.join([self._eval_line(L,
allow_use_file=allow_use_file, **kwds)
/home/vbraun/Code/sage.git/local/lib/python2.7/site-
packages/sage/interfaces/expect.pyc in _eval_line_using_file(self, line,
restart_if_needed)
750 except RuntimeError as msg:
751 raise RuntimeError('%s terminated unexpectedly
while reading in a large line'%self)
--> 752 if "Input/output error" in msg[0]: # This occurs on
non-linux machines
753 raise RuntimeError('%s terminated unexpectedly
while reading in a large line'%self)
754 raise RuntimeError('%s terminated unexpectedly while
reading in a large line:\n%s'%(self,msg[0]))
IndexError: tuple index out of range
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19876>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.