#17847: Cython: embed signatures in docstrings
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-6.6
      Component:  cython             |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  Fixed upstream,    |  Work issues:
  but not in a stable release.       |       Commit:
         Branch:                     |  1a36cc96d1e9ebd5d46a3dd9c027a41e89da2ebc
  u/jdemeyer/ticket/17847            |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 First observation: The underlying problem appears to not be in
 `_sage_getsourcelines_name_with_dot`.

 Namely, the reason why the element class' source can not be found is that
 the "parent" class can not be found:
 {{{
 sage: from sage.misc.sageinspect import sage_getsourcelines
 sage: from sage.misc.nested_class_test import TestNestedParent
 sage: sage_getsourcelines(TestNestedParent)[0][0]
 'cdef class Parent(category_object.CategoryObject):\n'
 }}}
 So, we need to find out why `sage_getsourcelines` returns the sources of
 `Parent` (a super-class of `TestNestedParent`).

 {{{
 sage: from sage.misc.sageinspect import sage_getfile
 sage: sage_getfile(TestNestedParent)
 '/home/king/Sage/git/sage/src/sage/structure/parent.pyx'
 }}}
 OK, that's wrong.

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

Reply via email to