#17814: Make calling a cached method independent of source code inspection
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.6
Component: distribution | Resolution:
Keywords: | Merged in:
Authors: Simon King | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/SimonKing/make_calling_a_cached_method_independent_of_source_code_inspection|
30543e7b283c52cad2fbeb060efe78a74c7b42ba
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
Replying to [comment:33 nbruin]:
> They could either write it into the docstring (as they already do with
source file information) or they could put some attributes on their cython
function objects.
I think the docstring is the only option: look at the fields of
[https://docs.python.org/2/c-api/structures.html#c.PyMethodDef
PyMethodDef]
Even then, I would propose to use just `*args` and `**kwds` for Cython
methods, which will surely be faster than messing with the list of
arguments. In the case where uniquess really matters for Cython methods, a
wrapper could be added to fix the arguments.
--
Ticket URL: <http://trac.sagemath.org/ticket/17814#comment:35>
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.
For more options, visit https://groups.google.com/d/optout.