#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):

 Another bug: Since Python 2.6, inspect.getargspec should return a _named_
 tuple ArgSpec(args, varargs, keywords, defaults) (see e.g.
 http://docs.python.org/library/inspect.html#inspect.getargspec). My patch
 expects such a tuple and returns such a tuple. However, sage_getargspec
 does not return a named argspec, and, apparently, inspect.formatargspec
 still accepts the unnamed one (so we don't see the error from here).
 We have two possibilities:
 1) Change my patch so it doesn't rely on the tuple being named
 2) Change sageinspect to return named tuples for all returned argspecs.
 I vote for 2) as that seems to be the direction Python is going; I would
 expect inspect.formatargspec to change in later versions and no longer
 accept unnamed tuples.

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