#181: Recursive load makes symbol?? display the wrong File: information
----------------------------------------------+-----------------------------
       Reporter:  ncalexan                    |         Owner:  was     
           Type:  enhancement                 |        Status:  new     
       Priority:  minor                       |     Milestone:  sage-5.7
      Component:  user interface              |    Resolution:          
       Keywords:  recursive load source file  |   Work issues:          
Report Upstream:  N/A                         |     Reviewers:          
        Authors:                              |     Merged in:          
   Dependencies:                              |      Stopgaps:          
----------------------------------------------+-----------------------------
Changes (by kcrisman):

  * upstream:  => N/A


Old description:

> We use the example in examples/programming/recursive_load.
>
> file1.sage defines a symbol foo.
> file2.sage defines a symbol bar.
>
> Each file loads the other recursively.
>
> If we load file2.sage first, then the source code for foo is displayed
> correctly by foo?? but the File: information is wrong.  The File: should
> read file1.sage.
>
> {{{
> sage: load file2.sage
> loaded file1.sage
> I'm now defining s
> loaded file1.sage
>
> sage: foo??
> Type:           function
> Base Class:     <type 'function'>
> String Form:    <function foo at 0x8fd6db0>
> Namespace:      Interactive
> File:           /Users/nalexand/Devel/sage-
> alpha8/examples/programming/recursive_load/file2.py
> Definition:     foo(n)
> Source:
> def foo(n):
>     print "foo"
>     return n**Integer(2)
> }}}

New description:

 We use the example in examples/programming/recursive_load.

 (''Note: this file no longer exists, but one could recreate this
 situation'')

 file1.sage defines a symbol foo.
 file2.sage defines a symbol bar.

 Each file loads the other recursively.

 If we load file2.sage first, then the source code for foo is displayed
 correctly by foo?? but the File: information is wrong.  The File: should
 read file1.sage.

 {{{
 sage: load file2.sage
 loaded file1.sage
 I'm now defining s
 loaded file1.sage

 sage: foo??
 Type:           function
 Base Class:     <type 'function'>
 String Form:    <function foo at 0x8fd6db0>
 Namespace:      Interactive
 File:           /Users/nalexand/Devel/sage-
 alpha8/examples/programming/recursive_load/file2.py
 Definition:     foo(n)
 Source:
 def foo(n):
     print "foo"
     return n**Integer(2)
 }}}

--

Comment:

 Just pointing out to those looking at this that the examples directory no
 longer exists.  However, the request still makes sense.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/181#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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to