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