[IPython-dev] Traceback trap in Interpreter
Robert Kern
robert.kern@gmail....
Mon Jul 14 14:58:24 CDT 2008
Gael Varoquaux wrote:
> Hi,
>
> I must be very dumb. I don't get how I am supposed to use the traceback
> trap in interpreter? Right now when I send to the interpreter something
> that generates a traceback, I get an exception, and the interpreter does
> not finish its execution procedure. As a result I don't get the traceback
> trapped in the return message. Maybe I am doing something stupid. My test
> code for this is:
>
> from IPython.kernel.core.interpreter import Interpreter
> i = Interpreter()
> i.execute('print i')
i.execute('print i', raiseException=False)
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the IPython-dev
mailing list