René's URL Explorer Experiment


Title: gh-159739: Fix reference and error handling in warnings by jelle-openai · Pull Request #159758 · python/cpython · GitHub

Open Graph Title: gh-159739: Fix reference and error handling in warnings by jelle-openai · Pull Request #159758 · python/cpython

X Title: gh-159739: Fix reference and error handling in warnings by jelle-openai · Pull Request #159758 · python/cpython

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

Open Graph Description: Do not release the borrowed skip_file_prefixes argument, and stop if allocation of the fallback filename fails. Backport to 3.15 and 3.14. Issue: Fix minor safety issues #159739

X Description: Do not release the borrowed skip_file_prefixes argument, and stop if allocation of the fallback filename fails. Backport to 3.15 and 3.14. Issue: Fix minor safety issues #159739

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

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:3355c6dd-76fc-f5a0-fd85-0927095553f8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9D60:E9D16:39805EE:48E4C0F:6B022C4F
html-safe-noncec70a8747486166223f508da8eb6a514a739f5d75a91e434ded103d3f7e23dca7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDYwOkU5RDE2OjM5ODA1RUU6NDhFNEMwRjo2QjAyMkM0RiIsInZpc2l0b3JfaWQiOiI2NjUyNTU2MDY0NDAxMjcxODg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac479df7a12d8d841555b42b32aa1e983da76707a47077bb455529acd498db921e
hovercard-subject-tagpull_request:4926925017
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/159758/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/109898c5514e87a91b1411424a4620cf2a71813e402cc35cba5865b53b201e47/python/cpython/pull/159758
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/109898c5514e87a91b1411424a4620cf2a71813e402cc35cba5865b53b201e47/python/cpython/pull/159758
og:image:altDo not release the borrowed skip_file_prefixes argument, and stop if allocation of the fallback filename fails. Backport to 3.15 and 3.14. Issue: Fix minor safety issues #159739
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejelle-openai
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/159758#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F159758
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%2F159758
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/159758
Reloadhttps://github.com/python/cpython/pull/159758
Reloadhttps://github.com/python/cpython/pull/159758
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
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
jelle-openai:jelle/codex/gh-159739-warnings-errorshttps://github.com/jelle-openai/cpython/tree/jelle/codex/gh-159739-warnings-errors
Conversationhttps://github.com/python/cpython/pull/159758
Commits4 (4)https://github.com/python/cpython/pull/159758/commits
Checkshttps://github.com/python/cpython/pull/159758/checks
Files changedhttps://github.com/python/cpython/pull/159758/files
gh-159739: Fix reference and error handling in warningshttps://github.com/python/cpython/pull/159758#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
jelle-openai:jelle/codex/gh-159739-warnings-errorshttps://github.com/jelle-openai/cpython/tree/jelle/codex/gh-159739-warnings-errors
https://github.com/jelle-openai
jelle-openaihttps://github.com/jelle-openai
Oct 19, 2026https://github.com/python/cpython/pull/159758#issue-5930970750
Please reload this pagehttps://github.com/python/cpython/pull/159758
Fix minor safety issues #159739https://github.com/python/cpython/issues/159739
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/JelleZijlstra
pythongh-159739https://github.com/python/cpython/issues/159739
: Fix reference and error handling in warningshttps://github.com/python/cpython/pull/159758/commits/78574c3aae0c803338531716ee8fa4fe64056e31
78574c3https://github.com/python/cpython/pull/159758/commits/78574c3aae0c803338531716ee8fa4fe64056e31
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 19, 2026 https://github.com/python/cpython/pull/159758#ref-issue-5930116084
Fix minor safety issues #159739 https://github.com/python/cpython/issues/159739
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 19, 2026https://github.com/python/cpython/pull/159758#event-33682480815
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Oct 19, 2026https://github.com/python/cpython/pull/159758#issuecomment-6276569871
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
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
Oct 19, 2026https://github.com/python/cpython/pull/159758#event-33682679466
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 19, 2026https://github.com/python/cpython/pull/159758#event-33683718217
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 19, 2026 https://github.com/python/cpython/pull/159758#pullrequestreview-5577613737
View reviewed changes https://github.com/python/cpython/pull/159758/files/78574c3aae0c803338531716ee8fa4fe64056e31
gpsheadhttps://github.com/gpshead
https://github.com/python/cpython/pull/159758#pullrequestreview-5577613737
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 19, 2026 https://github.com/python/cpython/pull/159758#pullrequestreview-5577631585
View reviewed changes https://github.com/python/cpython/pull/159758/files/78574c3aae0c803338531716ee8fa4fe64056e31
Misc/NEWS.d/next/Core_and_Builtins/2026-10-19-19-33-35.gh-issue-159739.f81734.rsthttps://github.com/python/cpython/pull/159758/files/78574c3aae0c803338531716ee8fa4fe64056e31#diff-4fed1c06a3b59b46c8e2b7d736338f75599ad374a776fd984e8400e98305add7
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 19, 2026https://github.com/python/cpython/pull/159758#event-33684792702
JelleZijlstrahttps://github.com/JelleZijlstra
October 19, 2026 14:24https://github.com/python/cpython/pull/159758#commits-pushed-b508baa
https://github.com/JelleZijlstra
new test, fix NEWShttps://github.com/python/cpython/pull/159758/commits/b508baa6bd6203280a25b0cf2ceb2073579b23a5
b508baahttps://github.com/python/cpython/pull/159758/commits/b508baa6bd6203280a25b0cf2ceb2073579b23a5
https://github.com/JelleZijlstra
Merge branch 'main' into jelle/codex/https://github.com/python/cpython/pull/159758/commits/7756fc05be9204ba7a369465270bd8bfd3a4ffe5
pythongh-159739https://github.com/python/cpython/issues/159739
-warnings-errorshttps://github.com/python/cpython/pull/159758/commits/7756fc05be9204ba7a369465270bd8bfd3a4ffe5
7756fc0https://github.com/python/cpython/pull/159758/commits/7756fc05be9204ba7a369465270bd8bfd3a4ffe5
https://github.com/JelleZijlstra
ihttps://github.com/python/cpython/pull/159758/commits/a0a945b57fe17a1608a26ddd8a982dc16d5e6971
a0a945bhttps://github.com/python/cpython/pull/159758/commits/a0a945b57fe17a1608a26ddd8a982dc16d5e6971
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
fab1405https://github.com/python/cpython/commit/fab1405da8c93429ab1a1d3d3e1779d15b7223a2
Oct 21, 2026https://github.com/python/cpython/pull/159758#event-33811200358
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 21, 2026https://github.com/python/cpython/pull/159758#issuecomment-6308127412
@jelle-openaihttps://github.com/jelle-openai
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 21, 2026https://github.com/python/cpython/pull/159758#event-33811203505
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 21, 2026https://github.com/python/cpython/pull/159758#issuecomment-6308129011
@jelle-openaihttps://github.com/jelle-openai
@JelleZijlstrahttps://github.com/JelleZijlstra
cherry_pickerhttps://pypi.org/project/cherry-picker/
devguidehttps://devguide.python.org/getting-started/git-boot-camp/#backporting-merged-changes
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 21, 2026https://github.com/python/cpython/pull/159758#issuecomment-6308129276
GH-160022https://github.com/python/cpython/pull/160022
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
JelleZijlstrahttps://github.com/JelleZijlstra
Oct 21, 2026https://github.com/python/cpython/pull/159758#event-33811211313
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
Oct 21, 2026https://github.com/python/cpython/pull/159758#event-33811211853
https://github.com/jelle-openai
jelle-openaihttps://github.com/jelle-openai
Oct 21, 2026 https://github.com/python/cpython/pull/159758#ref-pullrequest-5966063204
[3.14] gh-159739: Fix reference and error handling in warnings (GH-159758) #160085 https://github.com/python/cpython/pull/160085
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 21, 2026https://github.com/python/cpython/pull/159758#issuecomment-6323246927
GH-160085https://github.com/python/cpython/pull/160085
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/159758
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
Oct 21, 2026https://github.com/python/cpython/pull/159758#event-33875444806
JelleZijlstrahttps://github.com/JelleZijlstra
Oct 21, 2026 https://github.com/python/cpython/pull/159758#ref-commit-2c17c77
https://github.com/miss-islington
https://github.com/jelle-openai
[3.15]https://github.com/python/cpython/commit/2c17c77546903d06835f30404d3a8d8f1dafd0e7
gh-159739https://github.com/python/cpython/issues/159739
: Fix reference and error handling in warnings (https://github.com/python/cpython/commit/2c17c77546903d06835f30404d3a8d8f1dafd0e7
GH-15…https://github.com/python/cpython/pull/159758
2c17c77https://github.com/python/cpython/commit/2c17c77546903d06835f30404d3a8d8f1dafd0e7
…9758https://github.com/python/cpython/pull/159758
#160022https://github.com/python/cpython/pull/160022
fab1405https://github.com/python/cpython/commit/fab1405da8c93429ab1a1d3d3e1779d15b7223a2
JelleZijlstrahttps://github.com/JelleZijlstra
Oct 21, 2026 https://github.com/python/cpython/pull/159758#ref-commit-a03d287
https://github.com/jelle-openai
[3.14]https://github.com/python/cpython/commit/a03d2873881fbeae2cc92b507fc8891f0ca80496
gh-159739https://github.com/python/cpython/issues/159739
: Fix reference and error handling in warnings (https://github.com/python/cpython/commit/a03d2873881fbeae2cc92b507fc8891f0ca80496
GH-15…https://github.com/python/cpython/pull/159758
a03d287https://github.com/python/cpython/commit/a03d2873881fbeae2cc92b507fc8891f0ca80496
…9758https://github.com/python/cpython/pull/159758
#160085https://github.com/python/cpython/pull/160085
fab1405https://github.com/python/cpython/commit/fab1405da8c93429ab1a1d3d3e1779d15b7223a2
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%2F159758
https://github.com/gpshead
gpshead https://github.com/gpshead
https://github.com/python/cpython/pull/159758/files/78574c3aae0c803338531716ee8fa4fe64056e31
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/159758
https://github.com/jelle-openai
https://github.com/JelleZijlstra
https://github.com/gpshead
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.