Discussion:
[python-win32] Python: using stdout instead of stderr
LiJoe
2014-11-28 12:44:15 UTC
Permalink
Hi,

I am new for Python user under windows, so any suggestion would be help. :)

Currently i am using Cython 2.7.2 under windows, i found that Python sends command prompt(that is ">>>") to stderr instead of stdout, now i need to change it from stderr to stdout.
I have check the source code and didn't found how to achieve it, any expert can help me on this? thanks in advance. :)



Python 2.7.2 on win32
Type "help", "copyright", "credits" or "license" for more information.
Dennis Lee Bieber
2014-11-28 17:39:30 UTC
Permalink
Post by LiJoe
Hi,
I am new for Python user under windows, so any suggestion would be help. :)
Currently i am using Cython 2.7.2 under windows, i found that Python sends command prompt(that is ">>>") to stderr instead of stdout, now i need to change it from stderr to stdout.
I have check the source code and didn't found how to achieve it, any expert can help me on this? thanks in advance. :)
First question: what is the application?

If you are seeing the >>> prompt, then you are running an interactive
session, and using a console for input. The interactive prompt is primarily
for testing snippets of code or getting help.

A Python PROGRAM will be in a file, specified on the system command
line, and you will never see the >>> prompt.
--
Wulfraed Dennis Lee Bieber AF6VN
***@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Loading...