[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Changing interpreter's deafult output/error streams
From: Michael Hudson <mwh () python ! net>
Date: 2005-07-31 18:45:40
Message-ID: m24qaa95m3.fsf () 82-33-185-193 ! cable ! ubr01 ! azte ! blueyonder ! co ! uk
[Download RAW message or body]
"Ira" <sheig222@gmail.com> writes:
> Using an embedded interpreter, how do I change it's default output
> streams (specifically the one used by PyErr_Print() which I'm
> guessing is the default error stream)?
It looks as though it writes to stderr unconditionally. But most of
the reasons for ended up in PyErr_Print can be intercepted at a higher
level (I think -- I mean sys.excepthook & co here).
Cheers,
mwh
--
ARTHUR: Yes. It was on display in the bottom of a locked filing
cabinet stuck in a disused lavatory with a sign on the door
saying "Beware of the Leopard".
-- The Hitch-Hikers Guide to the Galaxy, Episode 1
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic