#6801: weird bug in magma.eval
------------------------+---------------------------------------------------
Reporter: was | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: interfaces | Keywords:
Reviewer: | Author:
Merged: |
------------------------+---------------------------------------------------
Comment(by klee):
The weird error occurs because Sage try to use a file to input the second
line "a:=..."
when Magma is waiting for the remaining part of "function t()". Look at
the following pexpect log.
{{{
function t()
>>>load
"/Users/Kwankyu/.sage//temp/athena.local/72436//interface//tmp72436";
load "/Users/Kwankyu/.sage//temp/athena.local/72436//interface//tmp72436";
>> load
"/Users/Kwankyu/.sage//temp/athena.local/72436//interface//tmp72436";
^
User error: bad syntax
>>>end function;
end function;
>> end function;
^
User error: bad syntax
>>>
}}}
I don't understand why the parameter "allow_use_file" is defaulted to
True, in
"sage/interfaces/expect.py(631)_eval_line()". See
{{{
def _eval_line(self, line, allow_use_file=True, wait_for_prompt=True):
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6801#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---