classification
Title: PyOS_StdioReadline is printing the prompt on stderr
Type: behavior Stage:
Components: Extension Modules Versions: Python 3.4, Python 3.3, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Albert.Zeyer, Drekin
Priority: normal Keywords:

Created on 2011-08-31 14:38 by Albert.Zeyer, last changed 2013-08-25 08:40 by Drekin.

Messages (2)
msg143256 - (view) Author: Albert Zeyer (Albert.Zeyer) Date: 2011-08-31 14:38
PyOS_StdioReadline from Parser/myreadline.c is printing the prompt on stderr.

I think it should print it on the given parameter sys_stdout. Other readline implementations (like from the readline module) also behave this way.

Even if it really is supposed to write on stderr, it should use the `sys.stderr` and not the system stderr.
msg196114 - (view) Author: (Drekin) Date: 2013-08-25 08:40
Related stackoverflow question: http://stackoverflow.com/questions/18419787/where-does-pythons-interactive-prompt-output-to .
History
Date User Action Args
2013-08-25 08:40:06Drekinsetnosy: + Drekin
messages: + msg196114
2013-02-19 20:10:23ezio.melottisettype: behavior
components: + Extension Modules
versions: + Python 3.3, Python 3.4
2011-08-31 14:38:37Albert.Zeyercreate