Skip to content

gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in tkinter module - #102319

Merged
iritkatriel merged 1 commit into
python:mainfrom
iritkatriel:tkinter-exc_info
Mar 1, 2023
Merged

gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives in tkinter module#102319
iritkatriel merged 1 commit into
python:mainfrom
iritkatriel:tkinter-exc_info

Conversation

@iritkatriel

@iritkatrieliritkatriel commented Feb 28, 2023

Copy link
Copy Markdown
Member

type and traceback are redundant now.

Comment threadModules/_tkinter.c
static int quitMainLoop = 0;
static int errorInCmd = 0;
static PyObject *excInCmd;
static PyObject *valInCmd;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were unused before this PR?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were used in a couple of Restore() calls, scroll down.

@pitrou

Copy link
Copy Markdown
Member

I have not followed on these new APIs, but I have no problem trusting you @iritkatriel and @markshannon :-)

@iritkatriel
iritkatriel merged commit f91846b into python:mainMar 1, 2023
erlend-aasland added a commit to erlend-aasland/cpython that referenced this pull request Mar 29, 2023
@iritkatriel
iritkatriel deleted the tkinter-exc_info branch April 3, 2023 17:45
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@iritkatriel@pitrou@markshannon@bedevere-bot