One cannot always get an integer, e.g. 3^-3 cannot be an integer. So the 
choices for type(int(3)^-3) are QQ or floats - currently Python's.

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'll report on testing the Sage library after such a change.

Dima

PS. Looking in the corresponding code fragment, one also seems there a weird 
place, allowing for "blah"^3 to 
be replaced by "blah"*3... This is really strange --- is there a reason for 
this?





-- 
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

Reply via email to