#9138: Categories for polynomial rings
--------------------------+-------------------------------------------------
   Reporter:  jbandlow    |       Owner:  nthiery                  
       Type:  defect      |      Status:  needs_info               
   Priority:  major       |   Milestone:  sage-4.7                 
  Component:  categories  |    Keywords:  introspection, categories
     Author:  Simon King  |    Upstream:  N/A                      
   Reviewer:              |      Merged:                           
Work_issues:              |  
--------------------------+-------------------------------------------------

Comment(by SimonKing):

 But apparently one ''can'' work around the mro:
 {{{
 sage: timeit('R.base_ring()',number=10^6)
 1000000 loops, best of 3: 470 ns per loop
 sage: timeit('Parent.base_ring(R)',number=10^6)
 1000000 loops, best of 3: 352 ns per loop
 }}}

 So, if speed matters, it might be worth while to use the idiom above to
 speed things up. I'll ask on sage-devel whether there is a more
 elegant/pythonic way to cope with a long mro.

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