#15303: Coercion discovery fails to be transitive
-------------------------------------+-------------------------------------
       Reporter:  nbruin             |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-5.13
      Component:  coercion           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Simon King         |    Reviewers:
Report Upstream:  N/A                |  Work issues:  Crash in permgroup.py
         Branch:                     |       Commit:
  u/SimonKing/ticket/15303           |  807550bbc45e9872ac365fc98b817ccd5bcfbb95
   Dependencies:  #14711, #15329,    |     Stopgaps:
  #15331                             |
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 If I understand correctly, the crash occurs while computing the hash of a
 `sage.groups.libgap_wrapper.ElementLibGAP` object.

 The hash is inherited from `sage.structure.element.Element` and relies on
 the string representation. The string representation relies on the result
 of the `is_one` method. This, in turn, amounts to comparison with
 `self.parent().one()`.

 Now I wonder: Has self become defunct? Or has `self.parent().one()` become
 defunct? Is it (again) the `WeakValueDictionary` used by
 `CachedRepresentation` that is causing the trouble?

--
Ticket URL: <http://trac.sagemath.org/ticket/15303#comment:95>
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