| 1 | initial version |
The Sage preparser is not the same as the python preparser. This one of the difference. You can access the Sage parser with sage_eval
sage: sage_eval('QQ[sqrt(2)]')
Number Field in sqrt2 with defining polynomial x^2 - 2
sage: eval('type(1)')
int
sage: sage_eval('type(1)')
sage.rings.integer.Integer
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.