#16532: Weak morphism created with register_coercion can result in invalid 
coercion
------------------------+----------------------------
   Reporter:  tscrim    |            Owner:  tscrim
       Type:  defect    |           Status:  new
   Priority:  critical  |        Milestone:  sage-6.3
  Component:  coercion  |         Keywords:
  Merged in:            |          Authors:
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+----------------------------
 First noted on #15475. Given `UniqueRepresentation` parents `A, B`  and a
 coercion `phi : A -> B` that was constructed/registered in the `__init__`
 of `A` by using `register_coercion`. Next suppose that `B` becomes garbage
 collected, and then so does `phi`. Then `B` is recreated. Expecting there
 to be a coercion map from `A -> B`, the user becomes very surprised when
 Sage responds with an errors saying there is no coercion map.

 Right now I'm too tired to come up with a minimal example, but is this a
 case of misuse or should we have morphisms passed to `register_coercion`
 carry strong references? Other ideas?

--
Ticket URL: <http://trac.sagemath.org/ticket/16532>
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/d/optout.

Reply via email to