This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Lib/code.py: InteractiveConsole.raw_input writes prompt to stdout
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Yclept.Nemo, berker.peksag, cheryl.sabella
Priority: normal Keywords:

Created on 2015-11-12 23:41 by Yclept.Nemo, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg254575 - (view) Author: Yclept Nemo (Yclept.Nemo) Date: 2015-11-12 23:41
Just like InteractiveInterpreter.write and the actual python interpreter, the console's prompt should be written to stderr. Something like:

self.write(prompt)
return input()
msg256182 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2015-12-10 20:24
Thanks for the report!

Unfortunately,

    self.write(prompt)
    return input()

is not equivalent of ``return input(prompt)``. Could you give more information about your use case?
msg338710 - (view) Author: Cheryl Sabella (cheryl.sabella) * (Python committer) Date: 2019-03-24 00:54
Since there was no additional information provided by the original poster, I'm going to close this.  Feel free to reopen if there is a use case.
History
Date User Action Args
2022-04-11 14:58:23adminsetgithub: 69800
2019-03-24 00:54:59cheryl.sabellasetstatus: open -> closed

nosy: + cheryl.sabella
messages: + msg338710

resolution: not a bug
stage: resolved
2015-12-10 20:24:16berker.peksagsetnosy: + berker.peksag
messages: + msg256182
2015-11-12 23:41:20Yclept.Nemocreate