Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-c922aa0-3.15
Open

[3.15] gh-72353: Continue reading from the console after ignored Ctrl+C (GH-155434)#156589
miss-islington wants to merge 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 [email protected]
Co-authored-by: Valeriya Sinevich [email protected]
Co-authored-by: Zackery Spytz [email protected]

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 <[email protected]>
Co-authored-by: Valeriya Sinevich <[email protected]>
Co-authored-by: Zackery Spytz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants