Skip to content

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

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-c922aa0-3.15
Oct 10, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-c922aa0-3.15

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 merged commit 7e5774b into python:3.15 Oct 10, 2026
56 checks passed
@miss-islington
miss-islington deleted the backport-c922aa0-3.15 branch October 10, 2026 09:34
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