#14017: Determine the correct argspec for python functions defined in cython 
files
------------------------------------------------+---------------------------
       Reporter:  SimonKing                     |         Owner:  jason   
           Type:  defect                        |        Status:  new     
       Priority:  major                         |     Milestone:  sage-5.7
      Component:  misc                          |    Resolution:          
       Keywords:  introspection cython argspec  |   Work issues:          
Report Upstream:  N/A                           |     Reviewers:          
        Authors:                                |     Merged in:          
   Dependencies:                                |      Stopgaps:          
------------------------------------------------+---------------------------

Comment (by SimonKing):

 Here is some other doctest that currently has a very odd result. The docs
 say that "In the case of a class or a class instance, the ``ArgSpec`` of
 the ``__new__`` or ``__init__`` methods are returned". The example is
 {{{
         sage: P.<x,y> = QQ[]
         sage: sage_getargspec(P)
         ArgSpec(args=['self', 'element'], varargs=None, keywords=None,
 defaults=None)
         sage: sage_getargspec(P.__class__)
         ArgSpec(args=['self', 'element'], varargs=None, keywords=None,
 defaults=None)
 }}}
 but in fact we have
 {{{
 sage:  sage_getargspec(P.__init__)
 ArgSpec(args=['self', 'base_ring', 'n', 'names', 'order'], varargs=None,
 keywords=None, defaults=("'degrevlex'",))
 }}}
 and thus the expected answer looks suspicious to me.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14017#comment:4>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to