#19597: General code cleanup: avoid code like x.__eq__(y)
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/general_code_cleanup__avoid_x___eq___y_|  
b2094a8a1cedafab73db0ed7653db3112982cec4
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:9 vdelecroix]:
 > `combinat/root_system/weyl_characters.py`: a very strange way to compute
 powers `self * self ** (n-1)`. I guess that generic power would be better
 here!

 It's apparently intentional. The doc says that it's more efficient to
 compute `a*(a*(a*a))` than `(a*a)*(a*a)`. Still, I can change the code to
 use a loop instead of recursion.

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