#13386: comparison of Sage integer with Numpy integer
----------------------------------------------+-----------------------------
Reporter: vdelecroix | Owner: vdelecroix
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.3
Component: basic arithmetic | Resolution:
Keywords: integer, numpy, comparison | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Vincent Delecroix | Merged in:
Dependencies: #11714 | Stopgaps:
----------------------------------------------+-----------------------------
Changes (by vdelecroix):
* dependencies: => #11714
Old description:
> We correct
> {{{
> sage: import numpy
> sage: numpy.int32(123) == 123
> True
> sage: 123 == numpy.int32(123)
> False
> }}}
New description:
We correct
{{{
sage: import numpy
sage: numpy.int32(123) == 123
True
sage: 123 == numpy.int32(123)
False
}}}
The change causes numpy to be loaded on startup. It may be hard to not do
it as there are many integer comparisons on startup (see
[http://trac.sagemath.org/sage_trac/ticket/13386#no3 see nbruin comment]).
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13386#comment:3>
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.