Skip to content

[3.14] gh-72353: Continue reading from the console after ignored Ctrl+C (GH-155434) - #156590

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-c922aa0-3.14
Aug 29, 2026
Merged

[3.14] gh-72353: Continue reading from the console after ignored Ctrl+C (GH-155434)#156590
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-c922aa0-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

If the console cancels a read because of Ctrl+C, but the SIGINT handler
does not raise an exception, restart the read instead of ending it as if
at end of file.
(cherry picked from commit c922aa0)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Valeriya Sinevich valeriya.sinevich@phystech.edu
Co-authored-by: Zackery Spytz zspytz@gmail.com

pythonGH-155434)

If the console cancels a read because of Ctrl+C, but the SIGINT handler
does not raise an exception, restart the read instead of ending it as if
at end of file.
(cherry picked from commit c922aa0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Valeriya Sinevich <valeriya.sinevich@phystech.edu>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 29, 2026 18:08
@serhiy-storchaka
serhiy-storchaka merged commit fbe7b09 into python:3.14 Aug 29, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-c922aa0-3.14 branch August 29, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants