| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:18f1ce23-52d7-b4fa-4e02-bb7baebe8f12 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8D38:3D4591:5D480B:889D3E:6A56108A |
| html-safe-nonce | 5fba6dd985379ea3e53f9c8c52997911972f629361909052c5e478444a749e26 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDM4OjNENDU5MTo1RDQ4MEI6ODg5RDNFOjZBNTYxMDhBIiwidmlzaXRvcl9pZCI6IjY5MTUzOTI1Nzk1NDgwOTA1MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7d59f0f118895249503667786215eba0609388dc2fc66a17b36e8d13972c0be6 |
| hovercard-subject-tag | pull_request:2868509520 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/139403/files |
| twitter:image | https://avatars.githubusercontent.com/u/1577132?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1577132?s=400&v=4 |
| og:image:alt | CC @picnixz
Issue: gh-139400 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 85a7179838b41e8b23f939d3b67b53f752ecfc54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/139403/files |
| Reload | https://github.com/python/cpython/pull/139403/files |
| Reload | https://github.com/python/cpython/pull/139403/files |
| Please reload this page | https://github.com/python/cpython/pull/139403/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| picnixz | https://github.com/picnixz |
| python:main | https://github.com/python/cpython/tree/main |
| hartwork:issue-139400 | https://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 page | https://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 page | https://github.com/python/cpython/pull/139403/files |
| Please reload this page | https://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.py | https://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 page | https://github.com/python/cpython/pull/139403/files |
| Please reload this page | https://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.rst | https://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.c | https://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 page | https://github.com/python/cpython/pull/139403/files |
|
| https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c |
| Please reload this page | https://github.com/python/cpython/pull/139403/files |
|
| https://github.com/python/cpython/pull/139403/files#diff-0534aca0d881f2dd1100e875602f98da60bf20ce127564896dc1e8a92a6fad2c |
| Please reload this page | https://github.com/python/cpython/pull/139403/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |