#15223: Let the `TestSuite` test that the construction of a parent returns the
parent
-----------------------------+-------------------------
       Reporter:  SimonKing  |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-5.12
      Component:  coercion   |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+-------------------------

Comment (by SimonKing):

 And I am to blame for a third problem, that is actually fairly similar to
 the second problem mentioned above. It is in my thematic tutorial on
 categories and coercion.

 - I create a parent class inheriting from `UniqueRepresentation`.
 - The parent class has a construction functor that keeps track of the
 "important" arguments needed to reconstruct the parent.
 - I create one instance P of the parent class using an additional
 "unimportant" argument, namely a category.

 Consequence: When trying to reconstruct P using the construction functor,
 the "unimportant" argument is missing, and hence `UniqueRepresentation`
 believes that a new instance needs to be created. After all, for
 `UniqueRepresentation`, ''all'' arguments are important parts of the cache
 key.

 I have to think how to solve this.

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