Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Michael Hudson
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

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Robert Kern
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

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Michael Hudson
"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

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Ira
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

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Robert Kern
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

Re: Changing interpreter's deafult output/error streams

2005-08-01 Thread Ira
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

Re: Changing interpreter's deafult output/error streams

2005-07-31 Thread Michael Hudson
"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

Changing interpreter's deafult output/error streams

2005-07-31 Thread Ira
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