#11383: Color('red') == Color('red') returns False
------------------------+---------------------------------------------------
Reporter: slabbe | Owner: slabbe
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.7.1
Component: graphics | Keywords: beginner, sd31
Work_issues: | Upstream: N/A
Reviewer: | Author: Ryan Grout
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by kini):
Color hashing is already broken in terms of any possible sane equality
comparison:
{{{
#!python
sage: c = Color('red')
sage: hash(c)
87590352
sage: hash(Color('red'))
87590672
sage: hash(Color('red'))
87590224
sage:
}}}
Something else to note: Sage is not SAGE, it is Sage! Please help to
eradicate SAGE from the codebase rather than introducing new instances of
it! :P
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11383#comment:8>
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.