#14054: Cythoned UniqueRepresentation
-----------------------------------------------+----------------------------
       Reporter:  SimonKing                    |         Owner:  tbd            
 
           Type:  enhancement                  |        Status:  needs_review   
 
       Priority:  major                        |     Milestone:  sage-5.8       
 
      Component:  performance                  |    Resolution:                 
 
       Keywords:  cython UniqueRepresentation  |   Work issues:                 
 
Report Upstream:  N/A                          |     Reviewers:  Travis 
Scrimshaw
        Authors:  Simon King                   |     Merged in:                 
 
   Dependencies:  #14017, #6495, #14159        |      Stopgaps:                 
 
-----------------------------------------------+----------------------------

Comment (by SimonKing):

 Back to the failing assertion:

 By inserting information on the mismatching parents, I find that indeed we
 get two distinct instances of the same parent `Free module generated by
 {1, 2, 3, 4} over Integer Ring`.

 So, how is it possible to create these distinct instances? Aha! They have
 indeed been created in different ways. Namely, by printing the
 `_reduction` attribute that is set during classcall, I found that
 x.parent() is created with the arguments
 {{{
 (Integer Ring, {1, 2, 3, 4}), {'category': Category of modules with basis
 over Integer Ring, 'prefix': 'y'})
 }}}
 but self.domain() is created using
 {{{
 (Integer Ring, {1, 2, 3, 4}), {'category': Category of modules with basis
 over Integer Ring, 'prefix': 'G'})
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14054#comment:45>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to