#15247: Introduce a baseclass for singletons
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-5.13
      Component:  performance        |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Simon King         |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/SimonKing/ticket/15247           |  26132d9f30e881fc75a3bae60c8e526a6e4fef9f
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by SimonKing):

 * status:  needs_work => needs_review
 * work_issues:  fixs more hash values =>


Comment:

 There were several hash tests to fix. In all cases, I stopped comparing
 against a particular number, because
 1. the number depends on the architecture (32- versus 64-bit)
 2. the number does not show how the hash function works
 3. one should test the result of `hash` against the hash function of the
 class being tested---otherwise (and this happened in at least three
 examples) one might test an instance of the wrong class.

 The tests should work now.

--
Ticket URL: <http://trac.sagemath.org/ticket/15247#comment:21>
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/groups/opt_out.

Reply via email to