#9976: Decorated functions/methods have generic signature in documentation
--------------------------------+-------------------------------------------
   Reporter:  jsrn              |       Owner:  mvngu                           
        
       Type:  enhancement       |      Status:  needs_work                      
        
   Priority:  major             |   Milestone:  sage-4.7                        
        
  Component:  documentation     |    Keywords:  sphinx, documentation, cython 
inspection
     Author:  jsrn, Simon King  |    Upstream:  N/A                             
        
   Reviewer:                    |      Merged:                                  
        
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by jsrn):

 Replying to [comment:25 SimonKing]:
 > Replying to [comment:22 jsrn]:
 > > It seems to be from a call to _sage_getdoc_unformatted in
 sageinspect.py on an object which does not support it.
 >
 > I just looked at `sage/plot/colors.py`, and found that the two
 `__getattr__` methods defined there simply call `__getitem__` -- and this
 raises a `KeyError`, even before sage-4.7.
 >
 > So, I suggested to replace the two `__getattr__` methods in this file by
 > {{{
 > try:
 >     return self.__getitem__(name)
 > except KeyError:
 >     raise AttributeError, "'%s' has no attribute %s"%(type(self),name)
 > }}}

 That's a good fix! New ticket (on which this depends) or just go dirty and
 fix it here?

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