[IPython-user] sys.stderr

JM Seitz jms@bughunter...
Wed Sep 3 11:33:47 CDT 2008


So (as I mentioned in my previous post) I have IPython embedded into a
C++ app. That's working fine now, however, I need to be able to access
sys.stderr but instead of the original traceback that Python itself has
thrown I can only get:

ERROR - failed to write data to
stream:<pyreadline.console.console.Console object at 0x036B6A70>

So I am getting the exception that the IPython shell was handed but I
need to get the original sys.stderr exception. The shell is an
iplib.InteractiveShell instance.

TIA


More information about the IPython-user mailing list