#11115: Rewrite cached_method in Cython
-----------------------------------------------------+----------------------
Reporter: SimonKing | Owner: jason
Type: enhancement | Status:
needs_info
Priority: major | Milestone:
sage-4.7.2
Component: misc | Keywords:
category cython cache
Work_issues: | Upstream: N/A
Reviewer: Nicolas M. ThiƩry, Andrey Novoseltsev | Author: Simon
King
Merged: | Dependencies: #9976
#11298 #11342 #9138
-----------------------------------------------------+----------------------
Comment(by SimonKing):
No, it is all totally different. It should have nothing to do with #11791
(but of course you may try).
In the code in my example, one starts with a function `test_meth`, that
has a doc string. When `test_meth` is turned into a cached method, the doc
string of `test_meth` is ''directly'' used as a doc string for the cached
method.
When I do
{{{
sage: print test_meth.__doc__
File: _mnt_local_king__sage_temp_mpc622_8600_tmp_0_spyx_0.pyx (starting at
line 6)
some doc for a wrapped cython method
}}}
then the doc string contains the file info.
You do ''not'' get that file info, right? But then, it has nothing to do
with cached methods, because `test_meth` is a plain cpdef Cython function.
What happens when you do `sage_getfile(test_meth)` or `test_meth??`?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11115#comment:97>
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.