#18076: Be nicer with numpy
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner: vdelecroix
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.6
Component: interfaces | Resolution:
Keywords: sd66 | Merged in:
Authors: Vincent | Reviewers: Jeroen Demeyer
Delecroix, Jeroen Demeyer | Work issues:
Report Upstream: N/A | Commit:
Branch: u/jdemeyer/18076 | c3e467149631917bb5ea7d753ef5a18333dd29ac
Dependencies: #18121 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Replying to [comment:21 vdelecroix]:
> Replying to [comment:20 jdemeyer]:
> > This looks wrong to me:
> > {{{
> > sage: numpy.int8('12') + 1/3
> > 12.333333333333334
> > }}}
> > Why is the answer a float???
>
> This is because the addition is handled by numpy and not by the
rational.
I see. It doesn't use the Sage coercion framework at all.
Could you clarify this in the docstring when you write this example?
--
Ticket URL: <http://trac.sagemath.org/ticket/18076#comment:23>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.