Changing interpreter's deafult output/error streams
Michael Hudson
mwh at python.net
Mon Aug 1 08:57:53 EDT 2005
Robert Kern <rkern at ucsd.edu> writes:
> Michael Hudson wrote:
>> "Ira" <sheig222 at gmail.com> writes:
>>
>>>OK let me rephrase,
>>>
>>>the standard error stream (and if I'm not mistaken also the one that
>>>PyErr_Print() writes to) is the python object sys.stderr. Now say I'd go
>>>ahead and write the following in python...
>> Ah, OK, I think you're mistaken, and PyErr_Print prints to the C
>> level
>> FILE* stderr (I agree my first post was confusing on this point, sorry
>> about that...).
>
> No, it doesn't. It grabs the appropriate object from sys.stderr.
Ah, you're right, I somehow ended up reading PySys_WriteStderr...
Cheers,
mwh
--
The only problem with Microsoft is they just have no taste.
-- Steve Jobs, (From _Triumph of the Nerds_ PBS special)
and quoted by Aahz on comp.lang.python
More information about the Python-list
mailing list