#17847: Cython: embed signatures in docstrings of Sage library code
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.6
Component: cython | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer, | Reviewers: Simon King, Jeroen
Simon King | Demeyer
Report Upstream: Fixed upstream, | Work issues:
but not in a stable release. | Commit:
Branch: | 02ee3cc5478de184783d64c609da0d9a083db9c2
u/jdemeyer/ticket/17847 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Replying to [comment:105 jdemeyer]:
> Hmm, this patch doesn't behave so nicely for some of Python's docs:
> {{{
> sage: print sage_getdoc_original(type)
> type(name, bases, dict) -> a new type
> }}}
Yes. That's because of my attempt to remove the signature. After all, what
I have is only a heuristics.
How could we improve the heuristics? Special-case `type`? Test whether the
first line ends with `')'`?
I'll finish a commit now. Please wait.
--
Ticket URL: <http://trac.sagemath.org/ticket/17847#comment:106>
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.