#7526: polynomial_template should avoid unnecessary coercions
---------------------------+------------------------------------------------
   Reporter:  ylchapuy     |       Owner:  tbd         
       Type:  defect       |      Status:  needs_review
   Priority:  major        |   Milestone:              
  Component:  performance  |    Keywords:              
Work_issues:               |      Author:              
   Upstream:  N/A          |    Reviewer:              
     Merged:               |  
---------------------------+------------------------------------------------
Changes (by ylchapuy):

  * status:  new => needs_review


Comment:

 I'm not totally sure of how this should be done as I don't know the
 details of coercions, neither the details of the polynomial templating
 used.

 At least, my patch doesn't break any doctest for me.

 It touch for methods, the ones using _coerce_.

 It test for parent equality before applying coercion. I also introduce a
 variable

 `parent = (<Polynomial_template>self)._parent`

 for readability.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7526#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to