#3342: [with spkg, needs work] bizarre source code introspection output
-----------------------------+----------------------------------------------
Reporter: was | Owner: tba
Type: defect | Status: needs_work
Priority: minor | Milestone: sage-4.5
Component: documentation | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Changes (by wjp):
* upstream: => N/A
Comment:
I did some more research:
In 'vanilla' IPython, the {{{<attribute '__doc__' of
'builtin_function_or_method' objects>}}} output is suppressed because
{{{inspect.getdoc(object)}}} checks if {{{object.__doc__}}} is an instance
of {{{types.StringTypes}}}.
Our replacement {{{sage.misc.sageinspect.sage_getdoc}}} doesn't have this
check. We can probably add it, but I'll (or someone else) will have to
test that doesn't break introspection in other places such as the
notebook.
I also reported the missing whitespace between {{{Source}}} and {{{Class
Docstring}}} upstream to the ipython developers.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3342#comment:5>
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.