-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-32207: Improve tk event exception tracebacks in IDLE. #4703
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
Conversation
When tk event handling is driven by IDLE's run loop, a confusing and distracting queue.EMPTY traceback context is no longer added to tk event exception tracebacks. The traceback is now the same as when event handling is driven by user code. Patch based on a suggestion by Serhiy Storchaka.
| Improve tk event exception tracebacks in IDLE. | ||
|
|
||
| When tk event handling is driven by IDLE's run loop, a confusing | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant empty lines.
|
|
||
| to tk event exception tracebacks. The traceback is now the same | ||
|
|
||
| as when event handling is driven by user code. Patch based on a suggestion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant space duplication before "a".
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this code? I didn't.
Remove blank lines added by something other than me.
|
The blank lines were not in the text I wrote in Notepad, opened by blurb. I removed them and then updated blurb in case it has changed its processing of the file after closing. I manually tested the patch running the example from an IDLE editor, without 'root.mainloop', so that the callbacks are handled by handle_tk_events. I then submitted multiple statements, including further root.after calls, at >>> prompts. |
|
Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6. |
) When tk event handling is driven by IDLE's run loop, a confusing and distracting queue.EMPTY traceback context is no longer added to tk event exception tracebacks. The traceback is now the same as when event handling is driven by user code. Patch based on a suggestion by Serhiy Storchaka. (cherry picked from commit 1e2fcac)
|
GH-4705 is a backport of this pull request to the 3.6 branch. |
…4705) When tk event handling is driven by IDLE's run loop, a confusing and distracting queue.EMPTY traceback context is no longer added to tk event exception tracebacks. The traceback is now the same as when event handling is driven by user code. Patch based on a suggestion by Serhiy Storchaka. (cherry picked from commit 1e2fcac)
When tk event handling is driven by IDLE's run loop, a confusing
and distracting queue.EMPTY traceback context is no longer added
to tk event exception tracebacks. The traceback is now the same
as when event handling is driven by user code. Patch based on
a suggestion by Serhiy Storchaka.
https://bugs.python.org/issue32207