#8860: incoherent types for real numbers
--------------------------------+-------------------------------------------
   Reporter:  zimmerma          |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  minor             |   Milestone:            
  Component:  basic arithmetic  |    Keywords:            
     Author:                    |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by zimmerma):

 I find {{{isinstance(1.2, sage.rings.real_mpfr.RealNumber)}}} not
 satisfying for three reasons:

 (1) it is much too long, compare say {{{isinstance(17, Integer)}}}

 (2) it explicitly refers to the underlying implementation and the MPFR
 component: this should be
     hidden from the user

 (3) that underlying implementation may change in the future, which will
 break some code using
     {{{sage.rings.real_mpfr.RealNumber}}}

 Thus we need a shortcut like "Integer" for real numbers.

 Paul

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