#13916: Fix inspection of interactive Cython code
------------------------------+---------------------------------------------
       Reporter:  SimonKing   |         Owner:  jason       
           Type:  defect      |        Status:  needs_review
       Priority:  major       |     Milestone:  sage-5.6    
      Component:  misc        |    Resolution:              
       Keywords:              |   Work issues:              
Report Upstream:  N/A         |     Reviewers:              
        Authors:  Simon King  |     Merged in:              
   Dependencies:              |      Stopgaps:              
------------------------------+---------------------------------------------
Changes (by {'newvalue': u'Simon King', 'oldvalue': ''}):

  * status:  new => needs_review
  * author:  => Simon King


Comment:

 With the attached patch, the following doctest works.
 {{{
         sage: cython('''cpdef test_funct(x,y): return''')
         sage: print
 open(_extract_embedded_position(inspect.getdoc(test_funct))[1]).read()
         <BLANKLINE>
         include "interrupt.pxi"  # ctrl-c interrupt block support
         include "stdsage.pxi"  # ctrl-c interrupt block support
         <BLANKLINE>
         include "cdefs.pxi"
         cpdef test_funct(x,y): return
 }}}
 The tests of sage/misc/sageinspect.py pass. Needs review!

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