#11779: python ints vs sage ints with respect to powers weirdness
------------------------+---------------------------------------------------
   Reporter:  dimpase   |          Owner:  AlexGhitza       
       Type:  defect    |         Status:  needs_review     
   Priority:  major     |      Milestone:  sage-4.7.2       
  Component:  coercion  |       Keywords:                   
Work_issues:            |       Upstream:  N/A              
   Reviewer:            |         Author:  Dmitrii Pasechnik
     Merged:            |   Dependencies:                   
------------------------+---------------------------------------------------

Comment(by leif):

 Also
 {{{
 sage: type(int(3)^RR(-3))
 <type 'sage.rings.real_mpfr.RealNumber'>
 }}}
 is wrong.

 Worse:
 {{{
 sage: type(int(3)^RR(3))
 <type 'sage.rings.real_mpfr.RealNumber'>
 }}}
 Much worse:
 {{{
 sage: type(int(3)^CC(3))
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)

 /tmp/Sage/sage-4.7.2.alpha2/devel/sage-11778/<ipython console> in
 <module>()

 /tmp/Sage/sage-4.7.2.alpha2/local/lib/python2.6/site-
 packages/sage/rings/complex_number.so in
 sage.rings.complex_number.ComplexNumber.__pow__
 (sage/rings/complex_number.c:6289)()

 AttributeError: 'int' object has no attribute 'log'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11779#comment:7>
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.

Reply via email to