Hi Dima, hi Rado, On 5 Sep., 11:58, Dima Pasechnik <dimp...@gmail.com> wrote: > I see no reason for int(3)^3 not to return a Sage Integer, and for int(3)^-3 > not to return a QQ.
I see a reason: x^n is recursively defined by x if n==0 x*x^(n-1) otherwise Hence, if x is a Python int then x^n should be a Python int (namely the n-fold product of x with itself) even if n is a Sage Integer. Cheers, Simon -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org