Skip to content

Conversation

@terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Dec 4, 2017

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

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

Copy link
Member

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
Copy link
Member

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".

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a 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.
@terryjreedy
Copy link
Member Author

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.

@terryjreedy terryjreedy merged commit 1e2fcac into python:master Dec 4, 2017
@miss-islington
Copy link
Contributor

Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@terryjreedy terryjreedy deleted the tclerror2 branch December 4, 2017 21:16
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 4, 2017
)

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)
@bedevere-bot
Copy link

GH-4705 is a backport of this pull request to the 3.6 branch.

terryjreedy pushed a commit that referenced this pull request Dec 4, 2017
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants