#11779: python ints vs sage ints with respect to powers weirdness
------------------------+---------------------------------------------------
Reporter: dimpase | Owner: AlexGhitza
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.7.2
Component: coercion | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Dmitrii Pasechnik
Merged: | Dependencies:
------------------------+---------------------------------------------------
Changes (by was):
* status: needs_review => needs_work
Comment:
Can you also add a doctest that illustrates this:
{{{
sage: type(int(3)^2)
...Integer...
}}}
I'm in favor of this change. It was always planned to add {{{__pow__}}}
to the coercion model, and have Sage types be favored over Python types
(just as the are for the other arithmetic operations), but nobody got
around to it. This patch doesn't make such a big sweeping change as
adding {{{__pow__}}} to the coercion model, but it is a step in the right
direction.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11779#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.