#11298: Extend the capabilities of Sage's introspection
--------------------------------+-------------------------------------------
   Reporter:  SimonKing         |          Owner:  jason           
       Type:  defect            |         Status:  needs_review    
   Priority:  major             |      Milestone:  sage-4.7.2      
  Component:  misc              |       Keywords:  edit sageinspect
Work_issues:  rebase to #11287  |       Upstream:  N/A             
   Reviewer:  John Palmieri     |         Author:  Simon King      
     Merged:                    |   Dependencies:  #9976, #11287   
--------------------------------+-------------------------------------------
Changes (by SimonKing):

  * status:  needs_info => needs_review
  * dependencies:  #9976 => #9976, #11287


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
>
>  - [attachment:trac11298_introspection_and_edit.patch]
>  - [attachment:trac11298_singular_standard_options.rebase4.7.1.a1.patch]
>  - [attachment:trac_11298-ref.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.rebased.patch]
  - [attachment:trac_11298-ref.patch]

--

Comment:

 I've built sage-4.7.1.rc1 and rebased the patch.

 Apply trac11298_introspection_and_edit.patch
 attachment:trac11298_singular_standard_options.rebased.patch
 attachment:trac_11298-ref.patch

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11298#comment:37>
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.

Reply via email to