| 1 | initial version |
Sage is indeed preparsing the entries before sending them to Python. To know what Sage is doing exactly with what you are typing, use the command preparse, with your Sage command passed as a string:
sage: preparse("3")
'Integer(3)'
sage: preparse("3+2")
'Integer(3)+Integer(2)'
sage: preparse("x^2")
'x**Integer(2)'
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.