#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):

 It is more and more strange. I don't know whether the line break in the
 name has a meaning or not. But for sure, `_extract_embedded_position(_)`
 does return something meaningful in your second example. I get:
 {{{
 sage: r = 'File: _mnt_local_king__sage_temp_mpc622_4939_tmp_1_spyx_0.pyx
 (starting at line 6)\nsome doc for a wrapped cython method'
 sage: print r
 File: _mnt_local_king__sage_temp_mpc622_4939_tmp_1_spyx_0.pyx (starting at
 line 6)
 some doc for a wrapped cython method
 sage: print sage.misc.sagedoc.format(r,embedded=False)File:
 _mnt_local_king__sage_temp_mpc622_4939_tmp_1_spyx_0.pyx
 (starting at line 6) some doc for a wrapped cython method
 }}}

 But still I find it most puzzling that on your machine
 `O.wrapped_method._sage_doc_()` does not return the same as
 `O.wrapped_method.f.__doc__` - or does it?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11115#comment:103>
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.

Reply via email to