Protect C-implemented context managers, like lock, from ctrl-C. Fixes bpo-29988.#1799
Protect C-implemented context managers, like lock, from ctrl-C. Fixes bpo-29988.#1799markshannon wants to merge 1 commit intopython:masterfrom
Conversation
…tment, even if ctrl-C interrupt occurs.
|
@markshannon, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @serhiy-storchaka and @1st1 to be potential reviewers. |
|
I think one of the issues is that The thing that @njsmith wants to fix is that the I'm not sure that without some new mechanism to guarantee that |
|
The removal of the The use of @1st1: I think the |
|
It would be better to discuss the design on the bugtracker. |
I added a comment on the bugtracker describing one approach we could use to write a robust test for this. |
|
I'm going to close this proposed update - as per the discussion on the tracker, I think the more robust solution is going to be to switch to being more selective in general about where we allow pending calls and asynchronous exceptions to be handled. |
Prevents Ctrl-C interrupting between the
POP_BLOCKandEND_WITHin the following bytecode sequence: