On Jan 22, 2008 1:57 PM, Nick Alexander <[EMAIL PROTECTED]> wrote: > > I'd imagine one would do it the same was as doctests, (almost) always > > assigning to a variable and then spitting out the string if it is not > > None... This doesn't solve the issue printing things from within a > > function (and detecting that would require more complicated parsing > > too). > > Doctests do not assign to a variable, at least I don't believe they > do. The code is actually evaled with stdout hooked, etc. > > IPython has an Out[] dictionary of recent results. Could that be > used in this situation?
"This situation" is evaluation of a block of code in the Sage notebook. The Sage notebook is 100% independent of IPython. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---