#11812: traceback with load and attach of .sage files
-----------------------------------------+-------------------------------
Reporter: mstreng | Owner: jason
Type: defect | Status: closed
Priority: major | Milestone: sage-4.8
Component: misc | Resolution: fixed
Keywords: load attach traceback | Merged in: sage-4.8.alpha0
Authors: Marco Streng | Reviewers: Johan Bosman
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------------------+-------------------------------
Comment (by mstreng):
Replying to [comment:22 jdemeyer]:
> I am thinking about #71 and it ''might'' be possible to have a traceback
for a preparsed-in-memory file by re-preparsing the file when showing the
traceback. I still have to check if that actually works.
Sounds good.
Anyway, to get good tracebacks by default also for load, all you need to
do is change
{{{
load_debug_mode = False
attach_debug_mode = True
}}}
both to {{{True}}} in sage/misc/preparser.py, except that the name
{{{debug_mode}}} is a bit confusing when it is the default.
> maybe it was just to simplify the code?
Simplifying and improving the code was indeed the purpose of #7514, where
the switch to memory was made. The efficiency reason for the switch to
memory was suggested to me by various people, not including the author of
#7514.
--
Ticket URL: <http://trac.sagemath.org/ticket/11812#comment:23>
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.
For more options, visit https://groups.google.com/d/optout.