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

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Feb 28, 2023

type and traceback are redundant now.

@@ -321,8 +321,6 @@ static PyObject *Tkinter_TclError;
static int quitMainLoop = 0;
static int errorInCmd = 0;
static PyObject *excInCmd;
static PyObject *valInCmd;
Copy link
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
Member Author

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
Member

pitrou commented Feb 28, 2023

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:main Mar 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 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.

4 participants