René's URL Explorer Experiment


Title: gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` by hartwork · Pull Request #139403 · python/cpython · GitHub

Open Graph Title: gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` by hartwork · Pull Request #139403 · python/cpython

X Title: gh-139400: Make sure that parent parsers outlive their subparsers in `pyexpat` by hartwork · Pull Request #139403 · python/cpython

Description: CC @picnixz Issue: gh-139400

Open Graph Description: CC @picnixz Issue: gh-139400

X Description: CC @picnixz Issue: gh-139400

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:18f1ce23-52d7-b4fa-4e02-bb7baebe8f12
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8D38:3D4591:5D480B:889D3E:6A56108A
html-safe-nonce5fba6dd985379ea3e53f9c8c52997911972f629361909052c5e478444a749e26
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDM4OjNENDU5MTo1RDQ4MEI6ODg5RDNFOjZBNTYxMDhBIiwidmlzaXRvcl9pZCI6IjY5MTUzOTI1Nzk1NDgwOTA1MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7d59f0f118895249503667786215eba0609388dc2fc66a17b36e8d13972c0be6
hovercard-subject-tagpull_request:2868509520
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/139403/files
twitter:imagehttps://avatars.githubusercontent.com/u/1577132?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1577132?s=400&v=4
og:image:altCC @picnixz Issue: gh-139400
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release85a7179838b41e8b23f939d3b67b53f752ecfc54
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/139403/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139403%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F139403%2Ffiles
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/139403/files
Reloadhttps://github.com/python/cpython/pull/139403/files
Reloadhttps://github.com/python/cpython/pull/139403/files
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality 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
picnixzhttps://github.com/picnixz
python:mainhttps://github.com/python/cpython/tree/main
hartwork:issue-139400https://github.com/hartwork/cpython/tree/issue-139400
Conversation 95 https://github.com/python/cpython/pull/139403
Commits 22 https://github.com/python/cpython/pull/139403/commits
Checks 63 https://github.com/python/cpython/pull/139403/checks
Files changed https://github.com/python/cpython/pull/139403/files
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat https://github.com/python/cpython/pull/139403/files#top
Show all changes 22 commits https://github.com/python/cpython/pull/139403/files
e1c0470 pyexpat.c: Disallow collection of in-use parent parsers hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/e1c047039b72c4c9002e9eb9c6cf689f4f54a9b2
3b0afda Add a regression test for issue 139400 hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/3b0afdaaf7b2361e209d725c9901f5f29c0d64b5
8f70991 Add news item for issue 139400 hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/8f70991fadc1dfaa7f9c800c9a760dea4107afaf
a63bd34 Improve test's docstring hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/a63bd34ac2cbeadaece3ade4bba648455ca4f44a
22417ec Simplify xmlparseobject_ to xmlparseobject hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/22417ec475d8e9a0f29caedc23d8584132ebf768
20caacd Leverage Py_CLEAR hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/20caacd3e77ef29780e5aa1d054ae5a3476f10a4
f8c58a3 Simplify call to Py_CLEAR hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/f8c58a3040b2deb9b8d37196a4697c9ebf04abd6
f1e3e36 Streamline docsting of ParentParserLifetimeTest hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/f1e3e3624b1e443246a36cd0d20b09652e62edd6
1b2937d pyexpat.c: Adjust whitespace around pointer hartwork Sep 28, 2025 https://github.com/python/cpython/pull/139403/commits/1b2937d5ee019220ea05bf444bbea7c2ff7732ef
8c5a4e8 Re-write news item hartwork Sep 29, 2025 https://github.com/python/cpython/pull/139403/commits/8c5a4e868ba370d744647826581858e3f3416a9d
a6f5520 Turn parent into a PyObject pointer hartwork Sep 30, 2025 https://github.com/python/cpython/pull/139403/commits/a6f5520c3efb55f00e189c030415f379cdabad95
4470cea Add missing parent visit to xmlparse_traverse hartwork Sep 30, 2025 https://github.com/python/cpython/pull/139403/commits/4470ceabf12be222c2d2a407f32841e591ff52f3
3759ac7 Re-write comment about mission of "PyObject *parent" hartwork Sep 30, 2025 https://github.com/python/cpython/pull/139403/commits/3759ac792315617e04f5f19a56bb6c9ad9d9c856
30598a9 Add whitespace as requested hartwork Oct 2, 2025 https://github.com/python/cpython/pull/139403/commits/30598a95d4bec1b0c767dced19a13e4b7c3e4f30
6d3c424 Add more tests hartwork Oct 2, 2025 https://github.com/python/cpython/pull/139403/commits/6d3c424ffddc6373debb555052234b3b3d4717f6
66b77e0 Add comment about Py_CLEAR(self->parent) to xmlparse_clear hartwork Oct 5, 2025 https://github.com/python/cpython/pull/139403/commits/66b77e0c2d7cf1d1199d9c678001830858787fe2
455787f Add missing full stops to docstrings hartwork Oct 5, 2025 https://github.com/python/cpython/pull/139403/commits/455787fe8ececc089adf34a17372b4dbad23659b
a669454 Drop reference to XML_ExternalEntityParserCreate hartwork Oct 5, 2025 https://github.com/python/cpython/pull/139403/commits/a66945436a8fba28919baadfa2d09ffa4679ef84
a91ed6b Make test test_cycle waterproof hartwork Oct 5, 2025 https://github.com/python/cpython/pull/139403/commits/a91ed6ba476333a307273fa1f3b27e6ecd6a3ae7
c056cfe Full stops and sentences hartwork Oct 5, 2025 https://github.com/python/cpython/pull/139403/commits/c056cfe0f420bc62fd6a6e4ddfac3715dc2cd6b4
12b8989 Drop test test_cycle hartwork Oct 5, 2025 https://github.com/python/cpython/pull/139403/commits/12b89892f1f53690c412e9a39f827f04bfaf6602
0541d6f Drop now-unused import hartwork Oct 5, 2025 https://github.com/python/cpython/pull/139403/commits/0541d6f48c209dfaed8783a4171a68f19a0aa4bf
Clear filters https://github.com/python/cpython/pull/139403/files
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
test_pyexpat.py https://github.com/python/cpython/pull/139403/files#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
2025-09-29-00-01-28.gh-issue-139400.X2T-jO.rst https://github.com/python/cpython/pull/139403/files#diff-16d6bf1612080eb1a9fc0bfb0290aee4a0fa2b5297475cb9f81a0913409bfdda
pyexpat.c https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
Lib/test/test_pyexpat.pyhttps://github.com/python/cpython/pull/139403/files#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
View file https://github.com/hartwork/cpython/blob/0541d6f48c209dfaed8783a4171a68f19a0aa4bf/Lib/test/test_pyexpat.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/139403/{{ revealButtonHref }}
https://github.com/python/cpython/pull/139403/files#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
https://github.com/python/cpython/pull/139403/files#diff-bdb65b60742876d0828ee1d7f2c168d36fa02cc202ace32d27c46a7b4a17605d
Misc/NEWS.d/next/Core_and_Builtins/2025-09-29-00-01-28.gh-issue-139400.X2T-jO.rsthttps://github.com/python/cpython/pull/139403/files#diff-16d6bf1612080eb1a9fc0bfb0290aee4a0fa2b5297475cb9f81a0913409bfdda
View file https://github.com/hartwork/cpython/blob/0541d6f48c209dfaed8783a4171a68f19a0aa4bf/Misc/NEWS.d/next/Core_and_Builtins/2025-09-29-00-01-28.gh-issue-139400.X2T-jO.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/139403/{{ revealButtonHref }}
Modules/pyexpat.chttps://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
View file https://github.com/hartwork/cpython/blob/0541d6f48c209dfaed8783a4171a68f19a0aa4bf/Modules/pyexpat.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/139403/{{ revealButtonHref }}
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c
Please reload this pagehttps://github.com/python/cpython/pull/139403/files
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.