You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Long inputs break
maxima.eval
once the eval-using-file threshold is crossed:CC: @jdemeyer @EmmanuelCharpentier
Component: interfaces
Issue created by migration from https://trac.sagemath.org/ticket/19876
The text was updated successfully, but these errors were encountered: