Changing interpreter's deafult output/error streams
Robert Kern
rkern at ucsd.edu
Mon Aug 1 08:54:41 EDT 2005
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.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list