René's URL Explorer Experiment


Title: GH-99293: Fix stale method caches and assertion errors in SWIG-generated modules by Yhg1s · Pull Request #99294 · python/cpython · GitHub

Open Graph Title: GH-99293: Fix stale method caches and assertion errors in SWIG-generated modules by Yhg1s · Pull Request #99294 · python/cpython

X Title: GH-99293: Fix stale method caches and assertion errors in SWIG-generated modules by Yhg1s · Pull Request #99294 · python/cpython

Description: Extension modules generated by SWIG up to version 4.1.0 clear the Py_TPFLAGS_VALID_VERSION_TAG bit from tp_flags when modifying the type, as they should, but do not update tp_version_tag as typeobj...

Open Graph Description: Extension modules generated by SWIG up to version 4.1.0 clear the Py_TPFLAGS_VALID_VERSION_TAG bit from tp_flags when modifying the type, as they should, but do not update tp_version_tag as typeobj...

X Description: Extension modules generated by SWIG up to version 4.1.0 clear the Py_TPFLAGS_VALID_VERSION_TAG bit from tp_flags when modifying the type, as they should, but do not update tp_version_tag as typeobj...

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

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:07c3458d-4889-2c6f-3661-b535e55a4a9f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE0CE:531C6:D2FDEA:1279FB5:696A2389
html-safe-nonced034312f43e90e70095fb40ed28560ee3b2325eddb08b4f52230a52dd6b422c0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMENFOjUzMUM2OkQyRkRFQToxMjc5RkI1OjY5NkEyMzg5IiwidmlzaXRvcl9pZCI6IjIwMTYwODc4ODI3ODU3NjAxMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac34c582917cc7be6fa3b2c38752bda6b913204654eb91877100bd580a608e7f14
hovercard-subject-tagpull_request:1116321180
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/99294/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0e055f4287ca53db5c94c999ea68fb084e4e4b264e8c03359c63524fd7646f58/python/cpython/pull/99294
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0e055f4287ca53db5c94c999ea68fb084e4e4b264e8c03359c63524fd7646f58/python/cpython/pull/99294
og:image:altExtension modules generated by SWIG up to version 4.1.0 clear the Py_TPFLAGS_VALID_VERSION_TAG bit from tp_flags when modifying the type, as they should, but do not update tp_version_tag as typeobj...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYhg1s
hostnamegithub.com
expected-hostnamegithub.com
None014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3
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
released515f6f09fa57a93bf90355cb894eb84ca4f458f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/99294#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99294
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%2F99294
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/99294
Reloadhttps://github.com/python/cpython/pull/99294
Reloadhttps://github.com/python/cpython/pull/99294
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/99294
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/99294
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/99294#issue-comment-box
Yhg1shttps://github.com/Yhg1s
python:mainhttps://github.com/python/cpython/tree/main
Yhg1s:fix_assertion_errorshttps://github.com/Yhg1s/cpython/tree/fix_assertion_errors
GH-99293: Fix stale method caches and assertion errors in SWIG-generated modules https://github.com/python/cpython/pull/99294#top
Yhg1shttps://github.com/Yhg1s
python:mainhttps://github.com/python/cpython/tree/main
Yhg1s:fix_assertion_errorshttps://github.com/Yhg1s/cpython/tree/fix_assertion_errors
Conversation 4 https://github.com/python/cpython/pull/99294
Commits 2 https://github.com/python/cpython/pull/99294/commits
Checks 0 https://github.com/python/cpython/pull/99294/checks
Files changed 2 https://github.com/python/cpython/pull/99294/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/Yhg1s
Yhg1shttps://github.com/Yhg1s
Nov 9, 2022https://github.com/python/cpython/pull/99294#issue-1442348973
Please reload this pagehttps://github.com/python/cpython/pull/99294
https://github.com/OSGeo/gdal/blob/6bd07b20b3e55c2fc94da611244a615a4fd2991f/swig/python/extensions/osr_wrap.cpp#L2296https://github.com/OSGeo/gdal/blob/6bd07b20b3e55c2fc94da611244a615a4fd2991f/swig/python/extensions/osr_wrap.cpp#L2296
Assertion errors/stale cache in typeobject.c when tp_version_tag is not cleared. #99293https://github.com/python/cpython/issues/99293
Please reload this pagehttps://github.com/python/cpython/pull/99294
https://github.com/Yhg1s
Fix stale method caches and assertion errors in SWIG-generated extensionhttps://github.com/python/cpython/pull/99294/commits/aacb0f62b034fe5b6b26582e5f864d688c208756
aacb0f6https://github.com/python/cpython/pull/99294/commits/aacb0f62b034fe5b6b26582e5f864d688c208756
https://github.com/OSGeo/gdal/blob/6bd07b20b3e55c2fc94da611244a615a4fd2991f/swig/python/extensions/osr_wrap.cpp#L2296https://github.com/OSGeo/gdal/blob/6bd07b20b3e55c2fc94da611244a615a4fd2991f/swig/python/extensions/osr_wrap.cpp#L2296
https://github.com/Yhg1s
Yhg1shttps://github.com/Yhg1s
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Nov 9, 2022https://github.com/python/cpython/pull/99294#event-7774979497
https://github.com/Yhg1s
Yhg1shttps://github.com/Yhg1s
markshannonhttps://github.com/markshannon
code ownerhttps://github.com/python/cpython/blob/c03e05c2e72f3ea5e797389e7d1042eef85ad37a/.github/CODEOWNERS#L19
November 9, 2022 15:59https://github.com/python/cpython/pull/99294#event-7774979567
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Nov 9, 2022 https://github.com/python/cpython/pull/99294#ref-issue-1442345714
Assertion errors/stale cache in typeobject.c when tp_version_tag is not cleared. #99293 https://github.com/python/cpython/issues/99293
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 9, 2022https://github.com/python/cpython/pull/99294#event-7774980418
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/99294/commits/0e8b65d20e9deae630b4d1ca45f46fddc96d9f61
0e8b65dhttps://github.com/python/cpython/pull/99294/commits/0e8b65d20e9deae630b4d1ca45f46fddc96d9f61
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/Fidget-Spinner
Nov 9, 2022 https://github.com/python/cpython/pull/99294#pullrequestreview-1174378716
View reviewed changes https://github.com/python/cpython/pull/99294/files/0e8b65d20e9deae630b4d1ca45f46fddc96d9f61
Fidget-Spinnerhttps://github.com/Fidget-Spinner
https://github.com/python/cpython/pull/99294#pullrequestreview-1174378716
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/99294
Objects/typeobject.chttps://github.com/python/cpython/pull/99294/files/0e8b65d20e9deae630b4d1ca45f46fddc96d9f61#diff-1decebeef15f4e0b0ce106c665751ec55068d4d1d1825847925ad4f528b5b872
Fidget-Spinnerhttps://github.com/Fidget-Spinner
Nov 9, 2022https://github.com/python/cpython/pull/99294#discussion_r1018161765
Please reload this pagehttps://github.com/python/cpython/pull/99294
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/99294
Misc/NEWS.d/next/Core and Builtins/2022-11-09-16-02-27.gh-issue-99293.oPstNV.rsthttps://github.com/python/cpython/pull/99294/files/0e8b65d20e9deae630b4d1ca45f46fddc96d9f61#diff-97f435f06f4226dd76918a8f3f6f6431d721d15c4cf4a080dbf3dfeca45e7f8a
Fidget-Spinnerhttps://github.com/Fidget-Spinner
Nov 9, 2022https://github.com/python/cpython/pull/99294#discussion_r1018166679
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/99294
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
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
Nov 9, 2022https://github.com/python/cpython/pull/99294#event-7775298392
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/Fidget-Spinner
Nov 9, 2022https://github.com/python/cpython/pull/99294#issuecomment-1309030076
Please reload this pagehttps://github.com/python/cpython/pull/99294
Please reload this pagehttps://github.com/python/cpython/pull/99294
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/Fidget-Spinner
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Nov 9, 2022https://github.com/python/cpython/pull/99294#event-7775950629
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Feb 21, 2023https://github.com/python/cpython/pull/99294#event-8572070144
https://github.com/hugovk
hugovkhttps://github.com/hugovk
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
Apr 7, 2023https://github.com/python/cpython/pull/99294#event-8955963181
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
May 9, 2024https://github.com/python/cpython/pull/99294#event-12756663918
https://github.com/hugovk
hugovkhttps://github.com/hugovk
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Apr 25, 2025https://github.com/python/cpython/pull/99294#event-17407827331
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
May 8, 2025https://github.com/python/cpython/pull/99294#event-17573681014
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%2F99294
https://github.com/Fidget-Spinner
Fidget-Spinner https://github.com/Fidget-Spinner
https://github.com/python/cpython/pull/99294/files/0e8b65d20e9deae630b4d1ca45f46fddc96d9f61
https://github.com/markshannon
markshannon https://github.com/markshannon
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Please reload this pagehttps://github.com/python/cpython/pull/99294
https://github.com/Yhg1s
https://github.com/Fidget-Spinner
https://github.com/iritkatriel
https://github.com/hugovk
https://github.com/serhiy-storchaka
https://github.com/bedevere-bot
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.