René's URL Explorer Experiment


Title: gh-129098: avoid using content of `_pyrepl/__main__.py` when reporting tracebacks by picnixz · Pull Request #130721 · python/cpython · GitHub

Open Graph Title: gh-129098: avoid using content of `_pyrepl/__main__.py` when reporting tracebacks by picnixz · Pull Request #130721 · python/cpython

X Title: gh-129098: avoid using content of `_pyrepl/__main__.py` when reporting tracebacks by picnixz · Pull Request #130721 · python/cpython

Description: I don't know how to test this :) Issue: REPL shows source code from _pyrepl.__main__.py #129098

Open Graph Description: I don't know how to test this :) Issue: REPL shows source code from _pyrepl.__main__.py #129098

X Description: I don't know how to test this :) Issue: REPL shows source code from _pyrepl.__main__.py #129098

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/*id(.:format)
route-controllerpull_requests
route-actionshow
fetch-noncev2:d0117472-4598-aab5-1d62-335ce286c958
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA16:353B52:37E84:4937C:696AD08D
html-safe-noncec9fa7235087ea00f90ad1e61a9e9305b349ea616ff3822f34d1eee515b327d5c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTE2OjM1M0I1MjozN0U4NDo0OTM3Qzo2OTZBRDA4RCIsInZpc2l0b3JfaWQiOiI5MDU4NTAzMTIxODk2NjU3MDM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca70bb7e9a7241351d2992655e073fcf4ebc7a31404a460b2f6690aaf5fae4e38
hovercard-subject-tagpull_request:2366081459
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
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/130721
twitter:imagehttps://opengraph.githubassets.com/c85b3e565f1686e6209fe9087337c758f1da01c456a8d9b782bf7ef3959eca78/python/cpython/pull/130721
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c85b3e565f1686e6209fe9087337c758f1da01c456a8d9b782bf7ef3959eca78/python/cpython/pull/130721
og:image:altI don't know how to test this :) Issue: REPL shows source code from _pyrepl.__main__.py #129098
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
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
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/130721#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130721
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130721
Sign up https://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&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/130721
Reloadhttps://github.com/python/cpython/pull/130721
Reloadhttps://github.com/python/cpython/pull/130721
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/130721
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/130721
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/130721#issue-comment-box
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/repl/show-source-129098https://github.com/picnixz/cpython/tree/fix/repl/show-source-129098
gh-129098: avoid using content of _pyrepl/__main__.py when reporting tracebacks https://github.com/python/cpython/pull/130721#top
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/repl/show-source-129098https://github.com/picnixz/cpython/tree/fix/repl/show-source-129098
Conversation 7 https://github.com/python/cpython/pull/130721
Commits 3 https://github.com/python/cpython/pull/130721/commits
Checks 53 https://github.com/python/cpython/pull/130721/checks
Files changed https://github.com/python/cpython/pull/130721/files
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 1, 2025https://github.com/python/cpython/pull/130721#issue-2888840345
Please reload this pagehttps://github.com/python/cpython/pull/130721
REPL shows source code from _pyrepl.__main__.py #129098https://github.com/python/cpython/issues/129098
Please reload this pagehttps://github.com/python/cpython/pull/130721
picnixzhttps://github.com/picnixz
March 1, 2025 12:37https://github.com/python/cpython/pull/130721#commits-pushed-ad8d574
https://github.com/picnixz
fix REPL traceback reporthttps://github.com/python/cpython/pull/130721/commits/ad8d57482c8ca652a93f4511f0fb4a0ac89a80ed
ad8d574https://github.com/python/cpython/pull/130721/commits/ad8d57482c8ca652a93f4511f0fb4a0ac89a80ed
https://github.com/picnixz
blurbhttps://github.com/python/cpython/pull/130721/commits/8eb3cca8f76335f6c98732e7290d3932fe082927
8eb3ccahttps://github.com/python/cpython/pull/130721/commits/8eb3cca8f76335f6c98732e7290d3932fe082927
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 1, 2025https://github.com/python/cpython/pull/130721#event-16522011564
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 1, 2025 https://github.com/python/cpython/pull/130721#ref-issue-2800150567
REPL shows source code from _pyrepl.__main__.py #129098 https://github.com/python/cpython/issues/129098
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 2, 2025https://github.com/python/cpython/pull/130721#issuecomment-2692481772
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/picnixz
picnixzhttps://github.com/picnixz
March 2, 2025 00:13https://github.com/python/cpython/pull/130721#event-16523685189
https://github.com/picnixz
picnixzhttps://github.com/picnixz
ambvhttps://github.com/ambv
lysnikolaouhttps://github.com/lysnikolaou
pablogsalhttps://github.com/pablogsal
code ownershttps://github.com/python/cpython/blob/c9932a9ec8a3077933a85101aae9c3ac155e6d04/.github/CODEOWNERS#L49
March 2, 2025 00:13https://github.com/python/cpython/pull/130721#event-16523685204
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
Mar 2, 2025https://github.com/python/cpython/pull/130721#event-16523685268
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Mar 2, 2025https://github.com/python/cpython/pull/130721#issuecomment-2692487551
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/picnixz
add testshttps://github.com/python/cpython/pull/130721/commits/9b0565da5966ac829b5d556b40477ad268eb7afd
9b0565dhttps://github.com/python/cpython/pull/130721/commits/9b0565da5966ac829b5d556b40477ad268eb7afd
https://github.com/picnixz
picnixzhttps://github.com/picnixz
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Mar 14, 2025https://github.com/python/cpython/pull/130721#event-16775502208
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Mar 23, 2025https://github.com/python/cpython/pull/130721#issuecomment-2746183692
@pablogsalhttps://github.com/pablogsal
@ambvhttps://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 20, 2025 https://github.com/python/cpython/pull/130721#pullrequestreview-2780295949
View reviewed changes https://github.com/python/cpython/pull/130721/files/9b0565da5966ac829b5d556b40477ad268eb7afd
pablogsalhttps://github.com/pablogsal
https://github.com/python/cpython/pull/130721#pullrequestreview-2780295949
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Apr 20, 2025https://github.com/python/cpython/pull/130721#event-17331807081
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Apr 20, 2025 https://github.com/python/cpython/pull/130721#pullrequestreview-2780296405
View reviewed changes https://github.com/python/cpython/pull/130721/files/9b0565da5966ac829b5d556b40477ad268eb7afd
Lib/test/test_pyrepl/test_pyrepl.pyhttps://github.com/python/cpython/pull/130721/files/9b0565da5966ac829b5d556b40477ad268eb7afd#diff-527def17e95277d68de9ccbef2358e5b89aba5407163ff8d0777936bb3f3bfab
pablogsalhttps://github.com/pablogsal
Apr 20, 2025https://github.com/python/cpython/pull/130721#discussion_r2051772546
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
492e3e6https://github.com/python/cpython/commit/492e3e6976d05b8de1892c37c900ada23eaeaf06
Apr 20, 2025https://github.com/python/cpython/pull/130721#event-17331812972
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Apr 20, 2025https://github.com/python/cpython/pull/130721#issuecomment-2817263916
@picnixzhttps://github.com/picnixz
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Apr 20, 2025https://github.com/python/cpython/pull/130721#event-17331813046
miss-islingtonhttps://github.com/miss-islington
Apr 20, 2025 https://github.com/python/cpython/pull/130721#ref-commit-452de44
https://github.com/picnixz
https://github.com/miss-islington
pythongh-129098https://github.com/python/cpython/issues/129098
: avoid using content ofhttps://github.com/miss-islington/cpython/commit/452de44fd40e9d540de4c2096c86dc4e3401e33d
_pyrepl/__main__.pyhttps://github.com/miss-islington/cpython/commit/452de44fd40e9d540de4c2096c86dc4e3401e33d
when re…https://github.com/miss-islington/cpython/commit/452de44fd40e9d540de4c2096c86dc4e3401e33d
452de44https://github.com/miss-islington/cpython/commit/452de44fd40e9d540de4c2096c86dc4e3401e33d
pythonGH-130721https://github.com/python/cpython/pull/130721
492e3e6https://github.com/miss-islington/cpython/commit/492e3e6976d05b8de1892c37c900ada23eaeaf06
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 20, 2025https://github.com/python/cpython/pull/130721#issuecomment-2817263976
GH-132755https://github.com/python/cpython/pull/132755
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/130721
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
Apr 20, 2025https://github.com/python/cpython/pull/130721#event-17331813349
pablogsalhttps://github.com/pablogsal
Apr 20, 2025 https://github.com/python/cpython/pull/130721#ref-commit-62663bf
https://github.com/miss-islington
https://github.com/picnixz
[3.13]https://github.com/python/cpython/commit/62663bfed59482f199d369bee4ec3f34d8ea8a19
gh-129098https://github.com/python/cpython/issues/129098
: avoid using content ofhttps://github.com/python/cpython/commit/62663bfed59482f199d369bee4ec3f34d8ea8a19
_pyrepl/__main__.pyhttps://github.com/python/cpython/commit/62663bfed59482f199d369bee4ec3f34d8ea8a19
when r…https://github.com/python/cpython/commit/62663bfed59482f199d369bee4ec3f34d8ea8a19
62663bfhttps://github.com/python/cpython/commit/62663bfed59482f199d369bee4ec3f34d8ea8a19
GH-130721https://github.com/python/cpython/pull/130721
#132755https://github.com/python/cpython/pull/132755
gh-129098https://github.com/python/cpython/issues/129098
GH-130721https://github.com/python/cpython/pull/130721
492e3e6https://github.com/python/cpython/commit/492e3e6976d05b8de1892c37c900ada23eaeaf06
https://github.com/picnixz
picnixzhttps://github.com/picnixz
April 24, 2025 21:04https://github.com/python/cpython/pull/130721#event-17397282554
gh-129098: Skip reading source lines if filename is _pyrepl.__main__.py inside REPL #129099 https://github.com/python/cpython/pull/129099
gh-132983: Install compression package contents #133063 https://github.com/python/cpython/pull/133063
picnixzhttps://github.com/picnixz
Apr 28, 2025 https://github.com/python/cpython/pull/130721#ref-commit-c92b5b8
https://github.com/picnixz
Revert "https://github.com/picnixz/cpython/commit/c92b5b8399ec8609c589028aa8e302619c2a15c3
pythongh-129098https://github.com/python/cpython/issues/129098
: avoid using content ofhttps://github.com/picnixz/cpython/commit/c92b5b8399ec8609c589028aa8e302619c2a15c3
_pyrepl/__main__.pyhttps://github.com/picnixz/cpython/commit/c92b5b8399ec8609c589028aa8e302619c2a15c3
https://github.com/picnixz/cpython/commit/c92b5b8399ec8609c589028aa8e302619c2a15c3
c92b5b8https://github.com/picnixz/cpython/commit/c92b5b8399ec8609c589028aa8e302619c2a15c3
python#130721https://github.com/python/cpython/pull/130721
492e3e6https://github.com/picnixz/cpython/commit/492e3e6976d05b8de1892c37c900ada23eaeaf06
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Apr 28, 2025 https://github.com/python/cpython/pull/130721#ref-pullrequest-3024377124
Temporarily revert 492e3e6976d05b8de1892c37c900ada23eaeaf06 for gh-130721 #133075 https://github.com/python/cpython/pull/133075
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%2F130721
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
https://github.com/python/cpython/pull/130721/files/9b0565da5966ac829b5d556b40477ad268eb7afd
https://github.com/lysnikolaou
lysnikolaou https://github.com/lysnikolaou
https://github.com/ambv
ambv https://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/130721
https://github.com/picnixz
https://github.com/skirpichev
https://github.com/pablogsal
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.