#9976: Decorated functions/methods have generic signature in documentation
--------------------------------+-------------------------------------------
Reporter: jsrn | Owner: jsrn
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: documentation | Keywords: sphinx, documentation, cython
inspection
Author: jsrn, Simon King | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by SimonKing):
Replying to [comment:84 jsrn]:
> I'm worried about lines 722-725 of sage_getarcspec: that TypeError which
you silently catch, is that only raised in case obj._sage_argspec_() does
not fit inside an ArgSpec?
No, the type error silently tests whether the object is a class - in which
case `obj._sage_argspec_()` would be called without an argument (which
gives rise to a type error).
`inspect.ArgSpec(*obj._sage_argspec_())` works regardless whether
_sage_getargspec_ returns a tuple, a named tuple or a list.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9976#comment:89>
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.