#10933: time of magma command fails inside function
--------------------------+-------------------------------------------------
Reporter: mariah | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-4.7
Component: interfaces | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
{{{
def foo(str):
time magma(str)
foo('1')
}}}
fails with
{{{
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (18, 0))
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/home/mariah/sage/sage-4.6.2-x86_64-Linux-core2-fc/<ipython console> in
<module>()
/home/mariah/sage/sage-4.6.2-x86_64-Linux-core2-fc/<ipython console> in
foo(str)
/home/mariah/sage/sage-4.6.2-x86_64-Linux-core2-fc/local/lib/python2.6
/site-packages/IPython/iplib.pyc in ipmagic(self, arg_s)
951 else:
952 magic_args = self.var_expand(magic_args,1)
--> 953 return fn(magic_args)
954
955 def ipalias(self,arg_s):
/home/mariah/sage/sage-4.6.2-x86_64-Linux-core2-fc/local/lib/python2.6
/site-packages/IPython/Magic.pyc in magic_time(self, parameter_s)
1904 if mode=='eval':
1905 st = clk()
-> 1906 out = eval(code,glob)
1907 end = clk()
1908 else:
/home/mariah/sage/sage-4.6.2-x86_64-Linux-core2-fc/<timed eval> in
<module>()
/home/mariah/sage/sage-4.6.2-x86_64-Linux-core2-fc/local/lib/python2.6
/site-packages/sage/interfaces/magma.pyc in __call__(self, x, gens)
735 pass
736
--> 737 A = Expect.__call__(self, x)
738 if has_cache:
739 x._magma_cache[self] = A
/home/mariah/sage/sage-4.6.2-x86_64-Linux-core2-fc/local/lib/python2.6
/site-packages/sage/interfaces/expect.pyc in __call__(self, x, name)
1110 return cls(self, str(x), name=name)
1111 except TypeError, msg2:
-> 1112 raise TypeError, msg
1113
1114 def _coerce_from_special_method(self, x):
TypeError: unable to coerce element into magma
sage:
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10933>
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.