René's URL Explorer Experiment


Title: gh-122255: Synchronize warnings in C and Python implementations of the warnings module by serhiy-storchaka · Pull Request #122824 · python/cpython · GitHub

Open Graph Title: gh-122255: Synchronize warnings in C and Python implementations of the warnings module by serhiy-storchaka · Pull Request #122824 · python/cpython

X Title: gh-122255: Synchronize warnings in C and Python implementations of the warnings module by serhiy-storchaka · Pull Request #122824 · python/cpython

Description: In the linecache module and in the Python implementation of the warnings module, a DeprecationWarning is issued when m.__loader__ differs from m.__spec__.loader (like in the C implementation of the...

Open Graph Description: In the linecache module and in the Python implementation of the warnings module, a DeprecationWarning is issued when m.__loader__ differs from m.__spec__.loader (like in the C implementation of the...

X Description: In the linecache module and in the Python implementation of the warnings module, a DeprecationWarning is issued when m.__loader__ differs from m.__spec__.loader (like in the C implementation of the...

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

X: @github

direct link

Domain: github.com

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:1f0ddee9-6478-e068-2e2b-5700a571ffdd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE2EC:371600:E361A5:13ABF41:696A85F8
html-safe-nonce46c3c6f2657835edec653e71ddca65b05ffd17dba9d166c493f84b73d114dba0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkVDOjM3MTYwMDpFMzYxQTU6MTNBQkY0MTo2OTZBODVGOCIsInZpc2l0b3JfaWQiOiIyOTQyNjA3MzExNzM0NzM2Mzc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac24ce6c6bd75cfe9538963f08ef4cadb0d548dbdfe76d834513ed8f7a33452807
hovercard-subject-tagpull_request:2010134399
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/122824/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d25a53eb035e2c87366658c9f996b2050d79896fe280a6281920cbc545cb21e8/python/cpython/pull/122824
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d25a53eb035e2c87366658c9f996b2050d79896fe280a6281920cbc545cb21e8/python/cpython/pull/122824
og:image:altIn the linecache module and in the Python implementation of the warnings module, a DeprecationWarning is issued when m.__loader__ differs from m.__spec__.loader (like in the C implementation of the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377
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
release5998c30593994bf2589055aef7b22d368a499367
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/122824#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F122824
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%2F122824
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/122824
Reloadhttps://github.com/python/cpython/pull/122824
Reloadhttps://github.com/python/cpython/pull/122824
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/122824
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/122824
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/122824#issue-comment-box
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:spec-loader-warningshttps://github.com/serhiy-storchaka/cpython/tree/spec-loader-warnings
gh-122255: Synchronize warnings in C and Python implementations of the warnings module https://github.com/python/cpython/pull/122824#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:spec-loader-warningshttps://github.com/serhiy-storchaka/cpython/tree/spec-loader-warnings
Conversation 6 https://github.com/python/cpython/pull/122824
Commits 6 https://github.com/python/cpython/pull/122824/commits
Checks 44 https://github.com/python/cpython/pull/122824/checks
Files changed https://github.com/python/cpython/pull/122824/files
Please reload this pagehttps://github.com/python/cpython/pull/122824
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 8, 2024https://github.com/python/cpython/pull/122824#issue-2455352373
Please reload this pagehttps://github.com/python/cpython/pull/122824
Warnings and errors specific to the C implementation of the warnings module #122255https://github.com/python/cpython/issues/122255
Please reload this pagehttps://github.com/python/cpython/pull/122824
https://github.com/serhiy-storchaka
pythongh-122255https://github.com/python/cpython/issues/122255
: Synchronize warnings in C and Python implementations…https://github.com/python/cpython/pull/122824/commits/ad53fe3021ba861f8cd754a82903643b6b8cf01a
ad53fe3https://github.com/python/cpython/pull/122824/commits/ad53fe3021ba861f8cd754a82903643b6b8cf01a
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
brettcannonhttps://github.com/brettcannon
warsawhttps://github.com/warsaw
August 8, 2024 09:43https://github.com/python/cpython/pull/122824#event-13804127104
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 8, 2024 https://github.com/python/cpython/pull/122824#ref-issue-2429132512
Warnings and errors specific to the C implementation of the warnings module #122255 https://github.com/python/cpython/issues/122255
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
Aug 8, 2024https://github.com/python/cpython/pull/122824#event-13804128418
serhiy-storchakahttps://github.com/serhiy-storchaka
August 14, 2024 15:44https://github.com/python/cpython/pull/122824#commits-pushed-c3f9bb1
https://github.com/serhiy-storchaka
Merge branch 'main' into spec-loader-warningshttps://github.com/python/cpython/pull/122824/commits/c3f9bb10ca7503a4d737c3028ded00494fdffaca
c3f9bb1https://github.com/python/cpython/pull/122824/commits/c3f9bb10ca7503a4d737c3028ded00494fdffaca
https://github.com/serhiy-storchaka
Fix test_warnings.https://github.com/python/cpython/pull/122824/commits/72042d9fe3b2c1befc829404fe01cf76b95a9f14
72042d9https://github.com/python/cpython/pull/122824/commits/72042d9fe3b2c1befc829404fe01cf76b95a9f14
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Sep 20, 2024 https://github.com/python/cpython/pull/122824#pullrequestreview-2317917047
View reviewed changes https://github.com/python/cpython/pull/122824/files/72042d9fe3b2c1befc829404fe01cf76b95a9f14
Misc/NEWS.d/next/Library/2024-08-08-12-39-36.gh-issue-122255.J_gU8Y.rsthttps://github.com/python/cpython/pull/122824/files/72042d9fe3b2c1befc829404fe01cf76b95a9f14#diff-7edbaeb852afd33427d241fa8f9d630a3b9128657e51065a5f4debdd9f4a34db
Please reload this pagehttps://github.com/python/cpython/pull/122824
Lib/linecache.pyhttps://github.com/python/cpython/pull/122824/files/72042d9fe3b2c1befc829404fe01cf76b95a9f14#diff-a12aa9f6b37c73461f9566b9d36c7a8caa36b72eb964b5aaaa2dfcd30c0c118d
Please reload this pagehttps://github.com/python/cpython/pull/122824
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 24, 2024https://github.com/python/cpython/pull/122824#issuecomment-2370572938
Please reload this pagehttps://github.com/python/cpython/pull/122824
Please reload this pagehttps://github.com/python/cpython/pull/122824
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Sep 24, 2024 https://github.com/python/cpython/pull/122824#pullrequestreview-2324667399
View reviewed changes https://github.com/python/cpython/pull/122824/files/72042d9fe3b2c1befc829404fe01cf76b95a9f14
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/122824#pullrequestreview-2324667399
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/122824
Lib/linecache.pyhttps://github.com/python/cpython/pull/122824/files/72042d9fe3b2c1befc829404fe01cf76b95a9f14#diff-a12aa9f6b37c73461f9566b9d36c7a8caa36b72eb964b5aaaa2dfcd30c0c118d
vstinnerhttps://github.com/vstinner
Sep 24, 2024https://github.com/python/cpython/pull/122824#discussion_r1772992916
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/122824
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 9, 2025https://github.com/python/cpython/pull/122824#discussion_r2507830939
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/122824
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
Sep 24, 2024https://github.com/python/cpython/pull/122824#event-14378377536
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
September 19, 2025 10:49https://github.com/python/cpython/pull/122824#event-19796887036
serhiy-storchakahttps://github.com/serhiy-storchaka
November 9, 2025 12:16https://github.com/python/cpython/pull/122824#commits-pushed-2bd6ee2
https://github.com/serhiy-storchaka
Merge branch 'main' into spec-loader-warningshttps://github.com/python/cpython/pull/122824/commits/2bd6ee26b51b5564dd2230c4863582e3244de5fe
2bd6ee2https://github.com/python/cpython/pull/122824/commits/2bd6ee26b51b5564dd2230c4863582e3244de5fe
https://github.com/serhiy-storchaka
https://github.com/vstinner
Apply suggestions from code reviewhttps://github.com/python/cpython/pull/122824/commits/53a3024d53cfc2f86f789b55411feda283753c27
53a3024https://github.com/python/cpython/pull/122824/commits/53a3024d53cfc2f86f789b55411feda283753c27
https://github.com/serhiy-storchaka
Fix the case of the __main__ module.https://github.com/python/cpython/pull/122824/commits/dc98bc6cb50cafcfbaa718dcf15907e7bf4e82a3
dc98bc6https://github.com/python/cpython/pull/122824/commits/dc98bc6cb50cafcfbaa718dcf15907e7bf4e82a3
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
8deaa93https://github.com/python/cpython/commit/8deaa9393eadf84e6e571be611e0c5a377abf7cd
Nov 14, 2025https://github.com/python/cpython/pull/122824#event-20945434682
Please reload this pagehttps://github.com/python/cpython/pull/122824
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
Nov 14, 2025https://github.com/python/cpython/pull/122824#event-20945435648
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
November 14, 2025 14:49https://github.com/python/cpython/pull/122824#event-20945435851
StanFromIrelandhttps://github.com/StanFromIreland
Dec 6, 2025 https://github.com/python/cpython/pull/122824#ref-commit-a3a3bb3
https://github.com/serhiy-storchaka
https://github.com/StanFromIreland
pythongh-122255https://github.com/python/cpython/issues/122255
: Synchronize warnings in C and Python implementations…https://github.com/StanFromIreland/cpython/commit/a3a3bb3fcfbc87ebf399b8fd0f0cebea73194f37
a3a3bb3https://github.com/StanFromIreland/cpython/commit/a3a3bb3fcfbc87ebf399b8fd0f0cebea73194f37
pythonGH-122824https://github.com/python/cpython/pull/122824
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%2F122824
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/122824/files/72042d9fe3b2c1befc829404fe01cf76b95a9f14
https://github.com/warsaw
warsaw https://github.com/warsaw
Please reload this pagehttps://github.com/python/cpython/pull/122824
https://github.com/serhiy-storchaka
https://github.com/vstinner
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.