On Thu, 26 Mar 2009 at 10:24PM -0700, Timothy Clemans wrote: > 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".
I think he's curious about Integer() being applied twice, when once is obviously enough. I just looked at an autogenerated .py file, and I only see things like _sage_const_1 = Integer(1)...Greg, where do you have 2's in your original .sage file? Dan > 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. -- --- Dan Drake <dr...@kaist.edu> ----- KAIST Department of Mathematical Sciences ------- http://mathsci.kaist.ac.kr/~drake
signature.asc
Description: Digital signature