René's URL Explorer Experiment


Title: gh-139145: Fix tkinter event loop in interactive mode by serhiy-storchaka · Pull Request #152257 · python/cpython · GitHub

Open Graph Title: gh-139145: Fix tkinter event loop in interactive mode by serhiy-storchaka · Pull Request #152257 · python/cpython

X Title: gh-139145: Fix tkinter event loop in interactive mode by serhiy-storchaka · Pull Request #152257 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This fixes two related bugs in the interactive-mode input hook (EventHook in Modules/_tkinter.c), with minimal changes and without requiring a thread-enabled Tcl, so it remains backportable. gh-139...

X Description: This fixes two related bugs in the interactive-mode input hook (EventHook in Modules/_tkinter.c), with minimal changes and without requiring a thread-enabled Tcl, so it remains backportable. gh-139...

Opengraph URL: https://github.com/python/cpython/pull/152257

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:eefb5402-96ea-aafd-4ba2-63aef3e3da53
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8420:2C4BED:45CA567:5879F8E:6B023A70
html-safe-nonce860c8c77fe700b6aa9025dcceb64e27a881a6dda99c6b9d9ac8a035e3b9168f1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDIwOjJDNEJFRDo0NUNBNTY3OjU4NzlGOEU6NkIwMjNBNzAiLCJ2aXNpdG9yX2lkIjoiNDE2NzkxNjg3Mzc3OTkxOTQ3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac624de22eef488035db6c6f547b35b74bab6577c8d5af1718a9f3191ab69c63f7
hovercard-subject-tagpull_request:3941254736
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/152257/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7f8e3fafe434081f4b79d1c2398b1cc8c8cc1b658f3d7e870107bf0d8de81e31/python/cpython/pull/152257
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f8e3fafe434081f4b79d1c2398b1cc8c8cc1b658f3d7e870107bf0d8de81e31/python/cpython/pull/152257
og:image:altThis fixes two related bugs in the interactive-mode input hook (EventHook in Modules/_tkinter.c), with minimal changes and without requiring a thread-enabled Tcl, so it remains backportable. gh-139...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/152257#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152257
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152257
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/152257
Reloadhttps://github.com/python/cpython/pull/152257
Reloadhttps://github.com/python/cpython/pull/152257
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:tkinter-eventhook-minimalhttps://github.com/serhiy-storchaka/cpython/tree/tkinter-eventhook-minimal
Conversationhttps://github.com/python/cpython/pull/152257
Commits1 (1)https://github.com/python/cpython/pull/152257/commits
Checkshttps://github.com/python/cpython/pull/152257/checks
Files changedhttps://github.com/python/cpython/pull/152257/files
gh-139145: Fix tkinter event loop in interactive modehttps://github.com/python/cpython/pull/152257#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:tkinter-eventhook-minimalhttps://github.com/serhiy-storchaka/cpython/tree/tkinter-eventhook-minimal
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 26, 2026https://github.com/python/cpython/pull/152257#issue-4750864071
gh-139145https://github.com/python/cpython/issues/139145
gh-139816https://github.com/python/cpython/issues/139816
@mdehoonhttps://github.com/mdehoon
#139180https://github.com/python/cpython/pull/139180
gh-139145https://github.com/python/cpython/issues/139145
@chrstphrchvzhttps://github.com/chrstphrchvz
#139180https://github.com/python/cpython/pull/139180
gh-139816https://github.com/python/cpython/issues/139816
tkinter wait_variable can cause the event loop to spin #139145https://github.com/python/cpython/issues/139145
gh-139816https://github.com/python/cpython/issues/139816
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/serhiy-storchaka
https://github.com/mdehoon
https://github.com/chrstphrchvz
https://github.com/claude
pythongh-139145https://github.com/python/cpython/issues/139145
: Fix tkinter event loop in interactive modehttps://github.com/python/cpython/pull/152257/commits/273b85bb307c86dda50728a13ecbb4a42bcae3d6
273b85bhttps://github.com/python/cpython/pull/152257/commits/273b85bb307c86dda50728a13ecbb4a42bcae3d6
pythongh-139816https://github.com/python/cpython/issues/139816
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 26, 2026 https://github.com/python/cpython/pull/152257#ref-issue-3432755134
tkinter wait_variable can cause the event loop to spin #139145 https://github.com/python/cpython/issues/139145
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 26, 2026https://github.com/python/cpython/pull/152257#event-27239619984
gh-139145: fix spinning event loop in tkinter #139180 https://github.com/python/cpython/pull/139180
Interactive python without readline hangs in case of a PythonCmd_Error in tkinter. #139816 https://github.com/python/cpython/issues/139816
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 26, 2026https://github.com/python/cpython/pull/152257#event-27239767015
https://github.com/mdehoon
mdehoonhttps://github.com/mdehoon
Jun 26, 2026https://github.com/python/cpython/pull/152257#issuecomment-4809770557
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
3ffda34https://github.com/python/cpython/commit/3ffda34f5cd3809a8755c9596948e4e477661d5f
Jun 26, 2026https://github.com/python/cpython/pull/152257#event-27249738530
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 26, 2026https://github.com/python/cpython/pull/152257#event-27249741092
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 26, 2026https://github.com/python/cpython/pull/152257#issuecomment-4810392174
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
June 26, 2026 14:14https://github.com/python/cpython/pull/152257#event-27249743040
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 26, 2026https://github.com/python/cpython/pull/152257#issuecomment-4810394397
GH-152291https://github.com/python/cpython/pull/152291
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 26, 2026https://github.com/python/cpython/pull/152257#event-27249749577
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 26, 2026https://github.com/python/cpython/pull/152257#issuecomment-4810395355
GH-152292https://github.com/python/cpython/pull/152292
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Jun 26, 2026https://github.com/python/cpython/pull/152257#event-27249754448
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 26, 2026https://github.com/python/cpython/pull/152257#issuecomment-4810396060
GH-152293https://github.com/python/cpython/pull/152293
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jun 26, 2026https://github.com/python/cpython/pull/152257#event-27249757696
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 26, 2026 https://github.com/python/cpython/pull/152257#ref-commit-52bdfcc
https://github.com/miss-islington
https://github.com/serhiy-storchaka
https://github.com/mdehoon
https://github.com/chrstphrchvz
https://github.com/claude
[3.15]https://github.com/python/cpython/commit/52bdfcc141079806b73e28d7901552c9b667bfc2
gh-139145https://github.com/python/cpython/issues/139145
: Fix tkinter event loop in interactive mode (https://github.com/python/cpython/commit/52bdfcc141079806b73e28d7901552c9b667bfc2
GH-152257https://github.com/python/cpython/pull/152257
…https://github.com/python/cpython/commit/52bdfcc141079806b73e28d7901552c9b667bfc2
52bdfcchttps://github.com/python/cpython/commit/52bdfcc141079806b73e28d7901552c9b667bfc2
GH-152291https://github.com/python/cpython/pull/152291
gh-139816https://github.com/python/cpython/issues/139816
3ffda34https://github.com/python/cpython/commit/3ffda34f5cd3809a8755c9596948e4e477661d5f
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 26, 2026 https://github.com/python/cpython/pull/152257#ref-commit-c2fedea
https://github.com/miss-islington
https://github.com/serhiy-storchaka
https://github.com/mdehoon
https://github.com/chrstphrchvz
https://github.com/claude
[3.14]https://github.com/python/cpython/commit/c2fedeaa6d30e25a5dce90bdf112954637988c29
gh-139145https://github.com/python/cpython/issues/139145
: Fix tkinter event loop in interactive mode (https://github.com/python/cpython/commit/c2fedeaa6d30e25a5dce90bdf112954637988c29
GH-152257https://github.com/python/cpython/pull/152257
…https://github.com/python/cpython/commit/c2fedeaa6d30e25a5dce90bdf112954637988c29
c2fedeahttps://github.com/python/cpython/commit/c2fedeaa6d30e25a5dce90bdf112954637988c29
GH-152292https://github.com/python/cpython/pull/152292
gh-139816https://github.com/python/cpython/issues/139816
3ffda34https://github.com/python/cpython/commit/3ffda34f5cd3809a8755c9596948e4e477661d5f
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 26, 2026 https://github.com/python/cpython/pull/152257#ref-commit-fba87d7
https://github.com/miss-islington
https://github.com/serhiy-storchaka
https://github.com/mdehoon
https://github.com/chrstphrchvz
https://github.com/claude
[3.13]https://github.com/python/cpython/commit/fba87d7f6838f5b69e359c2daf7d55eff1140a3c
gh-139145https://github.com/python/cpython/issues/139145
: Fix tkinter event loop in interactive mode (https://github.com/python/cpython/commit/fba87d7f6838f5b69e359c2daf7d55eff1140a3c
GH-152257https://github.com/python/cpython/pull/152257
…https://github.com/python/cpython/commit/fba87d7f6838f5b69e359c2daf7d55eff1140a3c
fba87d7https://github.com/python/cpython/commit/fba87d7f6838f5b69e359c2daf7d55eff1140a3c
GH-152293https://github.com/python/cpython/pull/152293
gh-139816https://github.com/python/cpython/issues/139816
3ffda34https://github.com/python/cpython/commit/3ffda34f5cd3809a8755c9596948e4e477661d5f
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152257
Please reload this pagehttps://github.com/python/cpython/pull/152257
Interactive python without readline hangs in case of a PythonCmd_Error in tkinter. https://github.com/python/cpython/issues/139816
Please reload this pagehttps://github.com/python/cpython/pull/152257
https://github.com/serhiy-storchaka
https://github.com/mdehoon
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.