Instead of actually modifying Python to fix some annoyances Sage uses IPython to preparse the code. For example in Sage "4 ^ 6" is preparsed into "4 ** 6".
On Thu, Mar 26, 2009 at 9:52 PM, Greg Kuperberg <greg.kuperb...@gmail.com> wrote: > > Hi. I see that when I make file called foo.sage, sage precompiles it > into another file called foo.py. The code statement in this file is: > > _sage_const_2 = Integer(Integer(2)) > > Surely this is wrong? Maybe it does not matter if this Python code is > only executed once. But still it looks strange. > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---