#9976: Decorated functions/methods have generic signature in documentation
--------------------------------+-------------------------------------------
Reporter: jsrn | Owner: jsrn
Type: enhancement | Status: needs_work
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):
I see that the problem is in sage.misc.sageinspect.SageArgSpecVisitor. It
can analyse various types of abstract source trees -- this is implemented
in the `visit_*` methods, for `*` in `List`, `Tuple`, `Dict`, `Num`. But
`* == BinOp` is missing, and would be needed in the example.
The generic `visit` method from the `ast` module has a bug, I believe: It
returns `None`, and this is the `None` that we see as key of the
dictionary that is the default value of b in the example above.
I am now trying to add that, and also for the `UnaryOp`. However, the
question really is whether it would be worth the effort...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9976#comment:104>
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.