Robert Kern <[EMAIL PROTECTED]> writes:
> Michael Hudson wrote:
>> "Ira" <[EMAIL PROTECTED]> 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
Michael Hudson wrote:
> "Ira" <[EMAIL PROTECTED]> 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 y
"Ira" <[EMAIL PROTECTED]> 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
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...
SomeNewStreamOrFileOrWhateverItIs = new stream
sys.stderr = SomeNewStreamOrFileOrWhateverItI
Ira wrote:
> 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...
>
> SomeNewStreamOrFileOrWhateverItIs = new stream
> sys.stderr = SomeN
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...
SomeNewStreamOrFileOrWhateverItIs = new stream
sys.stderr = SomeNewStreamOrFileOrWhateverItI
"Ira" <[EMAIL PROTECTED]> 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 ende
Hi,
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)?
Cheers,
Ira
--
http://mail.python.org/mailman/listinfo/python-list