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: How to insert newline characters as normal characters while input()?
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: larry
Priority: normal Keywords:

Created on 2021-08-10 14:28 by prasechen, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg399327 - (view) Author: chen-y0y0 (prasechen) Date: 2021-08-10 14:28
# Ɪ know, if Ɪ press enter key while input(), the method will be completed and return a str value.
# Ɪ am trying to insert newline characters as normal characters while input() method.
# The “normal characters” means:
# 1. It can be deleted by backspace(“\x7b”) or EOF or delete key.
# 2. It can be interprered as a normal byte.
# Ɪ tried by the readline module, it did work. But it may crash, like:
# Traceback (most recent call last):
#   File "<stdin>", line 1, in <module>
# SyntaxError: multiple statements found while compiling a single statement
msg399329 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2021-08-10 14:30
This is not a bug, you are asking for programming help.  Please don't use the Python issue tracker for programming help.  You won't get any, you'll just waste people's time.
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 89042
2021-08-10 14:30:23larrysetstatus: open -> closed

type: crash ->
components: - Interpreter Core, Windows, IO, Argument Clinic, FreeBSD
versions: - Python 3.6, Python 3.7, Python 3.8, Python 3.9, Python 3.10, Python 3.11
nosy: - paul.moore, tim.golden, zach.ware, koobs, steve.dower, prasechen

messages: + msg399329
resolution: not a bug
stage: resolved
2021-08-10 14:28:16prasechencreate