#11115: Rewrite cached_method in Cython
-----------------------------------------------------+----------------------
Reporter: SimonKing | Owner: jason
Type: enhancement | Status:
needs_review
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):
Replying to [comment:85 vbraun]:
> No, still failing with the same error.
That's amazing. Definitely `sage_getdoc` is supposed to provide the file
and position information, not just the mere doc string.
Please try the following (I did this with unpatched sage-4.6.2):
{{{
sage: cython("""
....: def test(x):
....: 'some doc string'
....: return None
....: """)
sage: from sage.misc.sageinspect import sage_getdoc
sage: print sage_getdoc(test)
File: _mnt_local_king__sage_temp_mpc622_14846_tmp_0_spyx_0.pyx
(starting at line 7) some doc string
}}}
Do you really get nothing more than `'some doc string'`?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11115#comment:86>
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.