#5441: preparser_ipython edit
--------------------+-------------------------------------------------------
Reporter: kohel | Owner: cwitty
Type: defect | Status: new
Priority: minor | Milestone:
Component: misc | Keywords:
--------------------+-------------------------------------------------------
In the function prepare_ipython, in the block:
if interface_name == 'magma' and magma_colon_equals:
I suggest changing:
line = line.replace(':=','=').replace('=',':=')
to
line = line.replace('=',':=').replace('::=',':=').replace(':=:=','=')
in sage/misc/preparser_ipython.py.
This will almost never be used (except by me),
but in principal allows one to write x == y to
get a magma relation (x = y) while preserving
the hack (= -> :=).
Also, in the block:
if interface_name in ['gap', 'magma', 'kash', 'singular']:
I also suggest deleting the lines:
if not line.endswith(';'):
line += ';'
since the call to interface.eval() should handle this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5441>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---