#11900: Serious regression caused by #9138
-------------------------------------------------------------+--------------
Reporter: SimonKing | Owner:
tbd
Type: defect | Status:
needs_review
Priority: critical | Milestone:
sage-5.0
Component: performance | Keywords:
categories regression
Work_issues: Update reviewer patch | Upstream:
N/A
Reviewer: Jeroen Demeyer, Nicolas M. ThiƩry, Simon King | Author:
Simon King
Merged: | Dependencies:
#9138 #11911 #9562
-------------------------------------------------------------+--------------
Comment(by SimonKing):
By "something changed with the hash between 2.6 and 2.7", I did not mean
that the value of the hash changed. What I meant was: Has the way of
calling the provided `__hash__` method changed?
In the patch, we turn the hash of a Category_singleton into a lazy class
attribute:
{{{
@lazy_class_attribute
def __hash__(cls):
return ConstantFunction(id(cls))
}}}
Is there any change between python2.6 and python2.7 that would affect this
code?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11900#comment:212>
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.