[issue33411] All console message are in the error output in bash interpretor

2021-12-07 Thread Eryk Sun
Eryk Sun added the comment: PyOS_Readline() calls PyOS_StdioReadline() if sys_stdin or sys_stdout isn't a tty file. This function always writes the prompt to stderr, as follows: if (prompt) { fprintf(stderr, "%s", prompt); } fflush(stderr); Maybe this matched the behavior

[issue33411] All console message are in the error output in bash interpretor

2021-12-07 Thread Irit Katriel
Irit Katriel added the comment: I think the question here is why this went to stderr rather than stdout: Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. -- nosy: +iritkatriel ___

[issue33411] All console message are in the error output in bash interpretor

2018-05-05 Thread Martin Panter
Martin Panter added the comment: The exception message and stack trace is documented to go to stderr: . Whether the prompt “>>>” goes to stderr or stdout depends on quirks of the environment. Issue 1927 currently proposes to make it a

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
Quentin Millardet added the comment: In a bash terminal, obtained result: $python > Normal.txt 2> Error.txt import a $cat Normal.txt $cat Error.txt Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more informa

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hello Quentin, and welcome. Please don't post screen shots of text. We don't edit our code with Photoshop, and using a screenshot makes it difficult to copy your code for testing, to verify the bug report, and prevents the blind and visually impaired from ta

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
Change by Quentin Millardet : -- status: -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
Change by Quentin Millardet : -- status: open -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33411] All console message are in the error output in bash interpretor

2018-05-02 Thread Quentin Millardet
New submission from Quentin Millardet : The probleme is all display (normal and error message), in bash, are send to the screen by the error output. So it's impossible when someone make a bash script to get the error back in a log file for exemple, or just to display only the error on a screen