#11298: Extend the capabilities of Sage's introspection
-----------------------------+----------------------------------------------
Reporter: SimonKing | Owner: jason
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.1
Component: misc | Keywords: edit sageinspect
Work_issues: | Upstream: N/A
Reviewer: John Palmieri | Author: Simon King
Merged: | Dependencies: #9976
-----------------------------+----------------------------------------------
Old description:
> The following used to fail:
>
> {{{
> sage: x??
> Error getting source: could not find class definition
> sage: P.<x,y> = QQ[]
> sage: P??
> Error getting source: could not find class definition
> sage: I??
> Error getting source: could not find class definition
> }}}
>
> Similarly, the edit command did not work in these case.
>
> With my patch, all that works. Moreover, both sage.misc.edit_module and
> sage.misc.sageinspect are put into the reference manual.
>
> Note that this may be related with #11287: `sage.misc.sage_getfile` and
> `sage_getsourcelines` could be a reliable tool to get information on how
> and from where to import a given object. Therefore Cc to the participants
> of that ticket.
>
> Moreover, Cc to #9976. Reason:
>
> Depends on #9976
>
> Apply trac11298_introspection_and_edit.patch,
> trac11298_singular_standard_options.rebase4.7.1.a1.patch
New description:
The following used to fail:
{{{
sage: x??
Error getting source: could not find class definition
sage: P.<x,y> = QQ[]
sage: P??
Error getting source: could not find class definition
sage: I??
Error getting source: could not find class definition
}}}
Similarly, the edit command did not work in these case.
With my patch, all that works. Moreover, both sage.misc.edit_module and
sage.misc.sageinspect are put into the reference manual.
Note that this may be related with #11287: `sage.misc.sage_getfile` and
`sage_getsourcelines` could be a reliable tool to get information on how
and from where to import a given object. Therefore Cc to the participants
of that ticket.
Moreover, Cc to #9976. Reason:
Depends on #9976
Apply
- [attachment:trac11298_introspection_and_edit.patch]
- [attachment:trac11298_singular_standard_options.rebase4.7.1.a1.patch]
- [attachment:trac_11298-ref.patch]
--
Comment(by jhpalmieri):
(The only aspect of the referee's patch worth mentioning is the removal of
the import of `sage_getsource`. This is already done at the top-level of
that file, so it doesn't need to be done again.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11298#comment:25>
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.