René's URL Explorer Experiment


Title: gh-122622: Add PyREPL simple_interact.statement_submitted_hook by edvilme · Pull Request #157241 · python/cpython · GitHub

Open Graph Title: gh-122622: Add PyREPL simple_interact.statement_submitted_hook by edvilme · Pull Request #157241 · python/cpython

X Title: gh-122622: Add PyREPL simple_interact.statement_submitted_hook by edvilme · Pull Request #157241 · python/cpython

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

Open Graph Description: Supersedes #144724 Adds a statement_submitted_hook hook to _pyrepl.simple_interact that gets triggered after the user has submitted a statement (not necessarily a line) but before it is executed. R...

X Description: Supersedes #144724 Adds a statement_submitted_hook hook to _pyrepl.simple_interact that gets triggered after the user has submitted a statement (not necessarily a line) but before it is executed. R...

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

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:a05f0fe7-6223-08c4-864a-f0f3bb1bdcc4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC20C:1655F9:C1EAF8:1161CD9:6AFDAB22
html-safe-nonce7889420cd8df800eae86e86815b54047f539c2b9c58a98f1041f7d0bbabed18b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjBDOjE2NTVGOTpDMUVBRjg6MTE2MUNEOTo2QUZEQUIyMiIsInZpc2l0b3JfaWQiOiI4MzU3MDk1NDM1OTAyMjMzMzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac560a888f1869fa289657ee3348a22a0da455fcca5dde3cd4c168700b3baa69bc
hovercard-subject-tagpull_request:4490193277
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/157241/commits
twitter:imagehttps://opengraph.githubassets.com/a6e80ad51e5b16e448f93da6d411e79f161523094be1c88d80b4cc19e80059fd/python/cpython/pull/157241
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a6e80ad51e5b16e448f93da6d411e79f161523094be1c88d80b4cc19e80059fd/python/cpython/pull/157241
og:image:altSupersedes #144724 Adds a statement_submitted_hook hook to _pyrepl.simple_interact that gets triggered after the user has submitted a statement (not necessarily a line) but before it is executed. R...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameedvilme
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
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
release0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/157241/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F157241%2Fcommits
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%2F157241%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/157241/commits
Reloadhttps://github.com/python/cpython/pull/157241/commits
Reloadhttps://github.com/python/cpython/pull/157241/commits
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
edvilmehttps://github.com/edvilme
python:mainhttps://github.com/python/cpython/tree/main
edvilme:pyrepl-hookhttps://github.com/edvilme/cpython/tree/pyrepl-hook
Conversationhttps://github.com/python/cpython/pull/157241
Commits27 (27)https://github.com/python/cpython/pull/157241/commits
Checkshttps://github.com/python/cpython/pull/157241/checks
Files changedhttps://github.com/python/cpython/pull/157241/files
gh-122622: Add PyREPL simple_interact.statement_submitted_hook https://github.com/python/cpython/pull/157241/commits#top
edvilmehttps://github.com/edvilme
python:mainhttps://github.com/python/cpython/tree/main
edvilme:pyrepl-hookhttps://github.com/edvilme/cpython/tree/pyrepl-hook
gh-122622: Add PyREPL pre-execution hookhttps://github.com/python/cpython/pull/157241/commits/4c18d3bdc20fa2cebe82e74bd025917196f5aad4
edvilmehttps://github.com/python/cpython/commits?author=edvilme
anthonykim1https://github.com/python/cpython/commits?author=anthonykim1
4c18d3bhttps://github.com/python/cpython/pull/157241/commits/4c18d3bdc20fa2cebe82e74bd025917196f5aad4
https://github.com/python/cpython/tree/4c18d3bdc20fa2cebe82e74bd025917196f5aad4
Add empty pre_execution_hook for feature detectionhttps://github.com/python/cpython/pull/157241/commits/b988e6f700cea2b922789924e838780e20d9e3f5
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
b988e6fhttps://github.com/python/cpython/pull/157241/commits/b988e6f700cea2b922789924e838780e20d9e3f5
https://github.com/python/cpython/tree/b988e6f700cea2b922789924e838780e20d9e3f5
Update tests to verify no interferencehttps://github.com/python/cpython/pull/157241/commits/7d9ddbfe93b02e0e82b4f8a3aa5e5d2a7ba1108e
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
7d9ddbfhttps://github.com/python/cpython/pull/157241/commits/7d9ddbfe93b02e0e82b4f8a3aa5e5d2a7ba1108e
https://github.com/python/cpython/tree/7d9ddbfe93b02e0e82b4f8a3aa5e5d2a7ba1108e
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/157241/commits/ad17396240c154f653fb791696bd507d6efa6f75
https://github.com/apps/blurb-it
blurb-it[bot]https://github.com/python/cpython/commits?author=blurb-it%5Bbot%5D
ad17396https://github.com/python/cpython/pull/157241/commits/ad17396240c154f653fb791696bd507d6efa6f75
https://github.com/python/cpython/tree/ad17396240c154f653fb791696bd507d6efa6f75
Update NEWShttps://github.com/python/cpython/pull/157241/commits/0ef602cf42bee64714b25d8534e298fbccc2f72e
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
0ef602chttps://github.com/python/cpython/pull/157241/commits/0ef602cf42bee64714b25d8534e298fbccc2f72e
https://github.com/python/cpython/tree/0ef602cf42bee64714b25d8534e298fbccc2f72e
Address feedbackhttps://github.com/python/cpython/pull/157241/commits/8ede9b25b7a87032e155f4c30c3bda7beebfaa78
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
8ede9b2https://github.com/python/cpython/pull/157241/commits/8ede9b25b7a87032e155f4c30c3bda7beebfaa78
https://github.com/python/cpython/tree/8ede9b25b7a87032e155f4c30c3bda7beebfaa78
Address feedbackhttps://github.com/python/cpython/pull/157241/commits/6d7dfe0f41bd65765d02af68a39134569430920d
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
6d7dfe0https://github.com/python/cpython/pull/157241/commits/6d7dfe0f41bd65765d02af68a39134569430920d
https://github.com/python/cpython/tree/6d7dfe0f41bd65765d02af68a39134569430920d
Merge branch 'main' into pyrepl-hookhttps://github.com/python/cpython/pull/157241/commits/d45c1d37cffed694545490f57e060cc1d9c60a8d
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
d45c1d3https://github.com/python/cpython/pull/157241/commits/d45c1d37cffed694545490f57e060cc1d9c60a8d
https://github.com/python/cpython/tree/d45c1d37cffed694545490f57e060cc1d9c60a8d
Show tracebakcshttps://github.com/python/cpython/pull/157241/commits/e1186d5a306f956036e6a654477f5990d3dd39f0
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
e1186d5https://github.com/python/cpython/pull/157241/commits/e1186d5a306f956036e6a654477f5990d3dd39f0
https://github.com/python/cpython/tree/e1186d5a306f956036e6a654477f5990d3dd39f0
Add tests to make sure hook runs before exceptionhttps://github.com/python/cpython/pull/157241/commits/f615af20aaf30907002b962ec1591b1ba0b993e9
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
f615af2https://github.com/python/cpython/pull/157241/commits/f615af20aaf30907002b962ec1591b1ba0b993e9
https://github.com/python/cpython/tree/f615af20aaf30907002b962ec1591b1ba0b993e9
Update commenthttps://github.com/python/cpython/pull/157241/commits/f766b486a70b7243b5ac52fbdd4388fe27d18134
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
f766b48https://github.com/python/cpython/pull/157241/commits/f766b486a70b7243b5ac52fbdd4388fe27d18134
https://github.com/python/cpython/tree/f766b486a70b7243b5ac52fbdd4388fe27d18134
Fix incorrect commenthttps://github.com/python/cpython/pull/157241/commits/a81c71abe41d0c79cd8479497f87acf3d16b1b95
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
a81c71ahttps://github.com/python/cpython/pull/157241/commits/a81c71abe41d0c79cd8479497f87acf3d16b1b95
https://github.com/python/cpython/tree/a81c71abe41d0c79cd8479497f87acf3d16b1b95
Merge branch 'main' into pyrepl-hookhttps://github.com/python/cpython/pull/157241/commits/a98d37a4c31b7b84cca09c9ed07a8d2a75a42c6b
edvilmehttps://github.com/python/cpython/commits?author=edvilme
Copilothttps://github.com/python/cpython/commits?author=Copilot
a98d37ahttps://github.com/python/cpython/pull/157241/commits/a98d37a4c31b7b84cca09c9ed07a8d2a75a42c6b
https://github.com/python/cpython/tree/a98d37a4c31b7b84cca09c9ed07a8d2a75a42c6b
Merge branch 'main' into pyrepl-hookhttps://github.com/python/cpython/pull/157241/commits/d948c288cda3cdf37780a29211ac7b5c8cab3176
https://github.com/brettcannon
brettcannonhttps://github.com/python/cpython/commits?author=brettcannon
d948c28https://github.com/python/cpython/pull/157241/commits/d948c288cda3cdf37780a29211ac7b5c8cab3176
https://github.com/python/cpython/tree/d948c288cda3cdf37780a29211ac7b5c8cab3176
Strip final indent from submitted hookhttps://github.com/python/cpython/pull/157241/commits/ce55702d0996be48af0215afa5252d334ffb02b4
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
ce55702https://github.com/python/cpython/pull/157241/commits/ce55702d0996be48af0215afa5252d334ffb02b4
https://github.com/python/cpython/tree/ce55702d0996be48af0215afa5252d334ffb02b4
Show traceback as a hook failure without modifying sys.last_*https://github.com/python/cpython/pull/157241/commits/866576906ce742246396097772fd151fb1fd0457
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
8665769https://github.com/python/cpython/pull/157241/commits/866576906ce742246396097772fd151fb1fd0457
https://github.com/python/cpython/tree/866576906ce742246396097772fd151fb1fd0457
Simplify comment to remove examplehttps://github.com/python/cpython/pull/157241/commits/b7e9986fc46e2913a32cf2e68841214be3301ebd
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
b7e9986https://github.com/python/cpython/pull/157241/commits/b7e9986fc46e2913a32cf2e68841214be3301ebd
https://github.com/python/cpython/tree/b7e9986fc46e2913a32cf2e68841214be3301ebd
Add tests for KeyboardInterrupt and SystemExithttps://github.com/python/cpython/pull/157241/commits/753ed835c8c144c2e0329b5e40c0656d43051f86
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
753ed83https://github.com/python/cpython/pull/157241/commits/753ed835c8c144c2e0329b5e40c0656d43051f86
https://github.com/python/cpython/tree/753ed835c8c144c2e0329b5e40c0656d43051f86
Add test for strip indentationhttps://github.com/python/cpython/pull/157241/commits/d2a7a45156163b561c71c86393fd721c6cd29eb2
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
d2a7a45https://github.com/python/cpython/pull/157241/commits/d2a7a45156163b561c71c86393fd721c6cd29eb2
https://github.com/python/cpython/tree/d2a7a45156163b561c71c86393fd721c6cd29eb2
Remove weak return value testhttps://github.com/python/cpython/pull/157241/commits/ac8d177f5c262ef1e72b4c99dbd0c46ab121682a
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
ac8d177https://github.com/python/cpython/pull/157241/commits/ac8d177f5c262ef1e72b4c99dbd0c46ab121682a
https://github.com/python/cpython/tree/ac8d177f5c262ef1e72b4c99dbd0c46ab121682a
Add PTY testhttps://github.com/python/cpython/pull/157241/commits/e28071a0a0aa97f909a219daa94acfa3c4532d8d
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
e28071ahttps://github.com/python/cpython/pull/157241/commits/e28071a0a0aa97f909a219daa94acfa3c4532d8d
https://github.com/python/cpython/tree/e28071a0a0aa97f909a219daa94acfa3c4532d8d
Update testshttps://github.com/python/cpython/pull/157241/commits/d6cd84868d4d70dc64f19e8d82517919842ad738
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
d6cd848https://github.com/python/cpython/pull/157241/commits/d6cd84868d4d70dc64f19e8d82517919842ad738
https://github.com/python/cpython/tree/d6cd84868d4d70dc64f19e8d82517919842ad738
Update News entryhttps://github.com/python/cpython/pull/157241/commits/7be412f2c3a14fa029ba847c655d68fe6e098569
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
7be412fhttps://github.com/python/cpython/pull/157241/commits/7be412f2c3a14fa029ba847c655d68fe6e098569
https://github.com/python/cpython/tree/7be412f2c3a14fa029ba847c655d68fe6e098569
Do not call _strip_final_indent twicehttps://github.com/python/cpython/pull/157241/commits/0ea14cd82b9ccb2419e595d6748f21d252290122
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
0ea14cdhttps://github.com/python/cpython/pull/157241/commits/0ea14cd82b9ccb2419e595d6748f21d252290122
https://github.com/python/cpython/tree/0ea14cd82b9ccb2419e595d6748f21d252290122
Rename to input_submitted_hookhttps://github.com/python/cpython/pull/157241/commits/8ea46f3e094099cb8f3e322f608035626c4029ab
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
8ea46f3https://github.com/python/cpython/pull/157241/commits/8ea46f3e094099cb8f3e322f608035626c4029ab
https://github.com/python/cpython/tree/8ea46f3e094099cb8f3e322f608035626c4029ab
Added Exception clarification to commenthttps://github.com/python/cpython/pull/157241/commits/c385c465fa1b8a45307aeabadc5adf3248d20272
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
c385c46https://github.com/python/cpython/pull/157241/commits/c385c465fa1b8a45307aeabadc5adf3248d20272
https://github.com/python/cpython/tree/c385c465fa1b8a45307aeabadc5adf3248d20272
Merge branch 'main' into pyrepl-hookhttps://github.com/python/cpython/pull/157241/commits/9d4fe713b5156a9008801b56b21f08764fb07256
https://github.com/edvilme
edvilmehttps://github.com/python/cpython/commits?author=edvilme
9d4fe71https://github.com/python/cpython/pull/157241/commits/9d4fe713b5156a9008801b56b21f08764fb07256
https://github.com/python/cpython/tree/9d4fe713b5156a9008801b56b21f08764fb07256
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.