#6345: load/attach do not recursively preparse files when run in interpreter
----------------------------+-----------------------------------------------
Reporter: ddrake | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-4.0.3
Component: user interface | Keywords: preparse ipython attach load
Reviewer: | Author:
Merged: |
----------------------------+-----------------------------------------------
Comment(by ddrake):
Just briefly looking around, perhaps there's a problem in
{{{preparse_file()}}} in {{{sage.misc.preparser}}}: when attaching a .sage
file, it does:
{{{
elif name_load[-5:] == '.sage':
try:
G = open(name_load)
except IOError:
print "File '%s' not found, so skipping load of
%s"%(name_load, name_load)
i += 1
continue
else:
A = A[:i] + G.readlines() + A[i+1:]
continue
}}}
In the example given in this ticket, it seems to just insert the lines of
test2.sage without preparsing them.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6345#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---