On Mon, Sep 13, 2010 at 12:41 PM, Alastair Irving
<alastair.irv...@sjc.ox.ac.uk> wrote:
> It depends on precisely what form your code takes.  If you're running the
> loop at the top level with S as a global variable then you should be able to
> do ctrl-c to terminate the computation and then look at S or any other
> global variable.  If your computations happening inside a function call then
> I don't know of any way round it.

If your set S is occurring in a (Python) function call and you are at
the Sage command-line, then you can do Ctrl-C to stop the computation,
type in "%debug" to enter the debugger, enter "u" until you move up
the call stack until you are at the place where your S is defined.
Then, you can do "print S" to have it print the set.

There may be trickier ways of manipulating the stack frame, but I
don't know offhand what they are.

--Mike

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to