#9944: categories for polynomial rings
----------------------------------------------+-----------------------------
   Reporter:  robertwb                        |       Owner:  nthiery   
       Type:  defect                          |      Status:  needs_info
   Priority:  major                           |   Milestone:  sage-4.7  
  Component:  categories                      |    Keywords:            
     Author:  Robert Bradshaw                 |    Upstream:  N/A       
   Reviewer:  Nicolas M. ThiƩry, Mike Hansen  |      Merged:            
Work_issues:                                  |  
----------------------------------------------+-----------------------------
Changes (by SimonKing):

  * status:  needs_work => needs_info
  * work_issues:  Fix one test =>


Comment:

 FWIW: The doc tests pass.

 Here is another idea what the slow down may come from. It was pointed out
 by Nicolas that the mro from the polynomial ring to `Parent` does not
 become longer by initialising the category properly: The inheritance from
 category parent classes comes ''after'' Python inheritance. However, when
 all the parent classes of all super categories must be searched, it takes
 considerably longer before an `AttributeError` can be raised.

 A similar issue has been studied at #10467. It seems to be important that
 an attribute error is raised as quickly as possible. That becomes
 difficult, if 60 parent classes need to be searched, before one eventually
 finds that the requested attribute does not exist.

 But probably that question is out of the scope of this ticket.

 So, what shall one do? Give it a positive review and accept the
 deceleration, or wait until someone has a model for improved attribute
 access?

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