diff options
author | Kushal Das <mail@kushaldas.in> | 2023-12-07 10:22:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 10:22:52 (GMT) |
commit | 4ba15de19153bb97308996ec85242bdeda358387 (patch) | |
tree | d0d59d4ead8ea7e225ea578e4b4f50755c1fee4e /Misc | |
parent | 8660fb7fd7cdcbfe58ef304f5720efe97ca7c842 (diff) | |
download | cpython-4ba15de19153bb97308996ec85242bdeda358387.zip cpython-4ba15de19153bb97308996ec85242bdeda358387.tar.gz cpython-4ba15de19153bb97308996ec85242bdeda358387.tar.bz2 |
gh-74616: Raise ValueError in case of null character in input prompt (GH-1738)
If the input prompt to the builtin input function on terminal has any null
character, then raise ValueError instead of silently truncating it.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-12-07-12-00-04.gh-issue-74616.kgTGVb.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-12-07-12-00-04.gh-issue-74616.kgTGVb.rst b/Misc/NEWS.d/next/Core and Builtins/2023-12-07-12-00-04.gh-issue-74616.kgTGVb.rst new file mode 100644 index 0000000..5c345be --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-12-07-12-00-04.gh-issue-74616.kgTGVb.rst @@ -0,0 +1,2 @@ +:func:`input` now raises a ValueError when output on the terminal if the +prompt contains embedded null characters instead of silently truncating it. |