#14017: Determine the correct argspec for python functions defined in cython
files
------------------------------------------------+---------------------------
Reporter: SimonKing | Owner: jason
Type: defect | Status: needs_review
Priority: major | Milestone: sage-5.7
Component: misc | Resolution:
Keywords: introspection cython argspec | Work issues:
Report Upstream: N/A | Reviewers: Travis
Scrimshaw
Authors: Simon King | Merged in:
Dependencies: | Stopgaps:
------------------------------------------------+---------------------------
Changes (by SimonKing):
* status: needs_work => needs_review
Comment:
Replying to [comment:16 jdemeyer]:
> > I could try to let `_sage_getargspec_cython` determine the varargs and
keywords name, and put them to the very end of the argument list. The list
of arguments/argspec would not change, but it would be correct syntax in
Python.
> Sounds reasonable.
I have updated my patch accordingly
> Alternatively, actually change
> {{{
> def __call__(self, *args, ring=None, bint interruptible=True,
attributes=None)
> }}}
> to the Python-compatible
> {{{
> def __call__(self, ring=None, bint interruptible=True, attributes=None,
*args)
> }}}
But similar syntax occurs all over the place. I think that should be done
on a separate ticket, if people think it is a problem.
Needs review, including a look at the outcome of the documentation as
mentioned in comment:14.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14017#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 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.