René's URL Explorer Experiment


Title: Preexec hook for REPL · Issue #122622 · python/cpython · GitHub

Open Graph Title: Preexec hook for REPL · Issue #122622 · python/cpython

X Title: Preexec hook for REPL · Issue #122622 · python/cpython

Description: Feature or enhancement Proposal: Background In VS Code we override PS1 to enable shell integration, this currently gives VS Code understanding of where the commands are and what they are. This provides a few features: Command decorations...

Open Graph Description: Feature or enhancement Proposal: Background In VS Code we override PS1 to enable shell integration, this currently gives VS Code understanding of where the commands are and what they are. This prov...

X Description: Feature or enhancement Proposal: Background In VS Code we override PS1 to enable shell integration, this currently gives VS Code understanding of where the commands are and what they are. This prov...

Opengraph URL: https://github.com/python/cpython/issues/122622

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preexec hook for REPL","articleBody":"# Feature or enhancement\n\n### Proposal:\n\n## Background\n\nIn VS Code we override PS1 to enable shell integration, this currently gives VS Code understanding of where the commands are and what they are. This provides a few features:\n\nCommand decorations with visualization of exit/error status:\n\n![image](https://github.com/user-attachments/assets/64b7782d-e12e-4eb2-ba36-661788f1e2bc)\n\nCommand navigation (cmd/ctrl+up/down):\n\n![image](https://github.com/user-attachments/assets/7de13281-1133-4a1e-9835-f5969b167d89)\n\nRun recent (ctrl+alt+r):\n\n![image](https://github.com/user-attachments/assets/803ca3a5-46f0-48a9-8b8e-be767089089c)\n\nTo give an example of what's possible with shell integration, here's our experimental VS Code-native PowerShell intellisense:\n\n![image](https://github.com/user-attachments/assets/1f87e79c-0d9b-4ed9-ba37-638c60885ee6)\n\nAnd multi-line sticky scroll:\n\n![image](https://github.com/user-attachments/assets/e0fbad1b-3192-4a79-bd73-3f01512f312a)\n\n## Request\n\nSomething we needed to work around for Python was the lack of a pre-execution hook, we would normally print `\\x1b[633;C\\a` at the end of a command just before it's run such that VS Code knows where that marker is. Currently we have to stick that at the start of the command input though which can degrade the experience, especially when VS Code attempts to figure out that command has been run manually.\n\nTo visualization of the problem, see the A, B, C, D markers in our python REPL:\n\n![image](https://github.com/user-attachments/assets/fbd90e99-28e6-489d-8ef3-1f0f2420b1ee)\n\nCompare this to PowerShell which positions them correctly:\n\n![image](https://github.com/user-attachments/assets/413ff1c3-7ef7-4843-b786-c60c74e1e16b)\n\nShell integration script included in VS Code's python extension: https://github.com/microsoft/vscode-python/blob/main/python_files/pythonrc.py\n\nI'm not a Python dev so I'm not sure what such an API would look like, but we essentially need a hook to run arbitrary code immediately before the REPL runs the command, something like this:\n\n```py\nclass MyPreexec:\n    def __str__(self):\n      return \"preexec\"\n\nsys.preexec = MyPreexec()\n```\n\ncc @anthonykim1 @brettcannon \n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-144724\n* gh-157241\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Tyriar","@type":"Person","name":"Tyriar"},"datePublished":"2024-08-02T15:46:34Z","url":"https://github.com/python/cpython/issues/122622"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:87b160cf-077a-34a7-0051-cc221af1b2c4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id91A4:B4351:BED1AB:1116ACB:6AFDA7B0
html-safe-nonce47621f4280be6f5c811e25973e8f4c4dd5555049c92d1e48912e8139193e91ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUE0OkI0MzUxOkJFRDFBQjoxMTE2QUNCOjZBRkRBN0IwIiwidmlzaXRvcl9pZCI6IjE1MDA5MzE1MzA4OTE4MzEyMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca675f2e7ff6284d01a669f87295e411a673c57494a6cdd804a93639dbce3addc
hovercard-subject-tagissue:2445266510
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/122622/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8b08c5be9699c49a8ecd12b4797614ebaccc56af53089eae99df97ae7ce793fa/python/cpython/issues/122622
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8b08c5be9699c49a8ecd12b4797614ebaccc56af53089eae99df97ae7ce793fa/python/cpython/issues/122622
og:image:altFeature or enhancement Proposal: Background In VS Code we override PS1 to enable shell integration, this currently gives VS Code understanding of where the commands are and what they are. This prov...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTyriar
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/122622#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F122622
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%2Fissues%2F122622
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/122622
Reloadhttps://github.com/python/cpython/issues/122622
Reloadhttps://github.com/python/cpython/issues/122622
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/122622
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/122622
Preexec hook for REPLhttps://github.com/python/cpython/issues/122622#top
topic-replRelated to the interactive shellhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-repl%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/Tyriar
Tyriarhttps://github.com/Tyriar
on Aug 2, 2024https://github.com/python/cpython/issues/122622#issue-2445266510
https://private-user-images.githubusercontent.com/2193314/354648293-64b7782d-e12e-4eb2-ba36-661788f1e2bc.png?jwt=eyJ0eXAiOiJKV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JzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.-neoCCgW4pd2y04lFK09PERFkympapg031f0yQsaQ6M
https://private-user-images.githubusercontent.com/2193314/354647365-1f87e79c-0d9b-4ed9-ba37-638c60885ee6.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwMDg3MzIsIm5iZiI6MTc5NTAwODQzMiwicGF0aCI6Ii8yMTkzMzE0LzM1NDY0NzM2NS0xZjg3ZTc5Yy0wZDliLTRlZDktYmEzNy02MzhjNjA4ODVlZTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTExOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMThUMTMyNzEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NmExMGM3NDUxZDJlNjY1MDQ0NTFhZTEzZWNjYzRhZmM4NjZhODdmNWIyYjcyMWZmZWQ0ZmFlMDUxZDI3NDFiZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.ojWQKaJZxgbS6dEQfJOoepJJG6-joTYr4RYiPvs_p-Q
https://private-user-images.githubusercontent.com/2193314/354651255-e0fbad1b-3192-4a79-bd73-3f01512f312a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwMDg3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ExMThUMTMyNzEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmU5NWY1YTg2NTI0MDRiM2ZiOTY2ZmUxYmM3ZGIzM2U5ZTYyNDU2NTRiYjVjMTRjOWY4MjlkNmY2YzFlY2RkZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.QsQs1VaP6VTrMqpw57ajPtoHSBJS4N6rO_TETFXwOm0
https://private-user-images.githubusercontent.com/2193314/354650080-413ff1c3-7ef7-4843-b786-c60c74e1e16b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwMDg3MzIsIm5iZiI6MTc5NTAwODQzMiwicGF0aCI6Ii8yMTkzMzE0LzM1NDY1MDA4MC00MTNmZjFjMy03ZWY3LTQ4NDMtYjc4Ni1jNjBjNzRlMWUxNmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTExOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMThUMTMyNzEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzhiYWM2NGUzZWNkNjc0NGQwMTBjZjk4ZDYzNmQ0N2M0ZWIwYjExNGU4ZTA4OTM1YmZjOTgzMzQxMTRmOTY4YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.pFCmnYPueSJNi8A56KoBZDlo2L_ad2m4-U2n63ZK6G4
https://github.com/microsoft/vscode-python/blob/main/python_files/pythonrc.pyhttps://github.com/microsoft/vscode-python/blob/main/python_files/pythonrc.py
@anthonykim1https://github.com/anthonykim1
@brettcannonhttps://github.com/brettcannon
gh-122622: Add sys._preexec hook for REPL #144724https://github.com/python/cpython/pull/144724
gh-122622: Add PyREPL simple_interact.statement_submitted_hook  #157241https://github.com/python/cpython/pull/157241
Tyriarhttps://github.com/Tyriar
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Aug 2, 2024https://github.com/python/cpython/issues/122622#event-13743765000
brettcannonhttps://github.com/brettcannon
topic-replRelated to the interactive shellhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-repl%22
on Aug 2, 2024https://github.com/python/cpython/issues/122622#event-13747357416
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Aug 3, 2024https://github.com/python/cpython/issues/122622#issuecomment-2266607451
https://github.com/Tyriar
Tyriarhttps://github.com/Tyriar
on Aug 3, 2024https://github.com/python/cpython/issues/122622#issuecomment-2266793409
https://github.com/microsoft/vscode/blob/3265d95dd5332118761adac197c2d17df4971e20/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1#L118-L127https://github.com/microsoft/vscode/blob/3265d95dd5332118761adac197c2d17df4971e20/src/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1#L118-L127
https://private-user-images.githubusercontent.com/2193314/354825068-dba7db02-154a-496c-aa4e-cab43e4cc054.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUwMDg3MzMsIm5iZiI6MTc5NTAwODQzMywicGF0aCI6Ii8yMTkzMzE0LzM1NDgyNTA2OC1kYmE3ZGIwMi0xNTRhLTQ5NmMtYWE0ZS1jYWI0M2U0Y2MwNTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTExOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMThUMTMyNzEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDA5ZWE0MDI1MjRkNzUwMjNjYjBiMGMzZTUwNzY5Yjc5M2Q5ODczMDk0OGUxNGM1YzQ1MmVkNDg1ZDkzMzFmMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.zq2lRfp0GBDRAC6zIojieL98LjEvj7irQj8GLSPKXUw
anthonykim1https://github.com/anthonykim1
on Feb 11, 2026https://github.com/python/cpython/issues/122622#event-22719101152
pythongh-122622: Add sys._preexec hook for REPLhttps://github.com/anthonykim1/cpython/commit/9ce4887adba1952fa2ca7bcac5a8fec1321ca545
pythongh-122622https://github.com/python/cpython/issues/122622
9ce4887https://github.com/anthonykim1/cpython/commit/9ce4887adba1952fa2ca7bcac5a8fec1321ca545
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
on Sep 9, 2026https://github.com/python/cpython/issues/122622#issuecomment-5593875854
@pablogsalhttps://github.com/pablogsal
https://github.com/edvilme
edvilmehttps://github.com/edvilme
on Sep 9, 2026https://github.com/python/cpython/issues/122622#issuecomment-5608539856
@brettcannonhttps://github.com/brettcannon
@pablogsalhttps://github.com/pablogsal
https://github.com/edvilme
edvilmehttps://github.com/edvilme
on Oct 27, 2026https://github.com/python/cpython/issues/122622#issuecomment-6455757520
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/122622
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/122622
topic-replRelated to the interactive shellhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-repl%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
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.