| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:472b7098-f2df-c547-cd33-2f3c8287fb7a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 843E:765B8:7A6633:A97F87:6A57DC0A |
| html-safe-nonce | dbed44de0c3e0ebfdaf5491506f39b6e42560e74708668da20fa8922397f34d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDNFOjc2NUI4OjdBNjYzMzpBOTdGODc6NkE1N0RDMEEiLCJ2aXNpdG9yX2lkIjoiNzU3MDQzOTA4MTc4MzM2Nzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0fa36acc8637c799350e3afdb913e56119e2438f06a18c1d50f2d505d848c20c |
| hovercard-subject-tag | pull_request:2897304851 |
| 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/139768/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | It allows to check whether a string can be used as an element or attribute name in XML.
Issue: gh-139489
📚 Documentation preview 📚: https://cpython-previews--139768.org.readthedocs.build/ |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| 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 | 36b9c371e4e031091f1b89adf913d9e6993943df |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/139768/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F139768%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%2F139768%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/139768/files |
| Reload | https://github.com/python/cpython/pull/139768/files |
| Reload | https://github.com/python/cpython/pull/139768/files |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/139768/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 |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:main | https://github.com/python/cpython/tree/main |
| serhiy-storchaka:xml-sax-utils-is_valid_name | https://github.com/serhiy-storchaka/cpython/tree/xml-sax-utils-is_valid_name |
|
Conversation
22
| https://github.com/python/cpython/pull/139768 |
|
Commits
9
| https://github.com/python/cpython/pull/139768/commits |
|
Checks
56
| https://github.com/python/cpython/pull/139768/checks |
|
Files changed
| https://github.com/python/cpython/pull/139768/files |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
|
gh-139489: Add xml.is_valid_name()
| https://github.com/python/cpython/pull/139768/files#top |
|
Show all changes
9 commits
| https://github.com/python/cpython/pull/139768/files |
|
c7cbb61
gh-139489: Add xml.sax.utils.is_valid_name()
serhiy-storchaka Oct 8, 2025
| https://github.com/python/cpython/pull/139768/commits/c7cbb61a68213a80d5e76ae0ae66a89daa3aa7cf |
|
4f37eed
Fix references.
serhiy-storchaka Oct 8, 2025
| https://github.com/python/cpython/pull/139768/commits/4f37eed421f9353f13719777ee66a2919e8912c2 |
|
6ac604e
dd
serhiy-storchaka Apr 30, 2026
| https://github.com/python/cpython/pull/139768/commits/6ac604e2d85b673bff1662d058308c3de7630fe9 |
|
e814cfa
Move to the toplevel xml module.
serhiy-storchaka Apr 30, 2026
| https://github.com/python/cpython/pull/139768/commits/e814cfa888c30e021493b4a9bac7a1d68a291ec7 |
|
bc26874
Use possesive quantifier for optimization.
serhiy-storchaka Apr 30, 2026
| https://github.com/python/cpython/pull/139768/commits/bc26874c80206e77f5c1d4fbbb1748249768d941 |
|
b631754
Merge branch 'main' into xml-sax-utils-is_valid_name
serhiy-storchaka May 1, 2026
| https://github.com/python/cpython/pull/139768/commits/b63175427bbe060d6b2e820f33b24e598ca777d2 |
|
8db41b9
Merge branch 'main' into xml-sax-utils-is_valid_name
serhiy-storchaka May 2, 2026
| https://github.com/python/cpython/pull/139768/commits/8db41b9421888b604aa9717074a9a41e7ea4635e |
|
7e96492
Apply suggestions from code review
serhiy-storchaka May 2, 2026
| https://github.com/python/cpython/pull/139768/commits/7e964920cc5119d39b2b49e9feb3b4bb6f9fbb5f |
|
3245a65
Import re as _re.
serhiy-storchaka May 4, 2026
| https://github.com/python/cpython/pull/139768/commits/3245a65da4acc3796432a7716ee9211ceb386f31 |
|
Clear filters
| https://github.com/python/cpython/pull/139768/files |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
|
xml.rst
| https://github.com/python/cpython/pull/139768/files#diff-d6ce2d53bcf20763d2f58b11018a9bfe0ea5e0ccfa3a027922dede23f024cf32 |
|
3.15.rst
| https://github.com/python/cpython/pull/139768/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
test_xml.py
| https://github.com/python/cpython/pull/139768/files#diff-fe3b1407d9669dfd5e997e92106c88607d72385c4f577be9825d3183e731c3a6 |
|
__init__.py
| https://github.com/python/cpython/pull/139768/files#diff-7233d3b7e183e198816856f342b5d660951544a33641236cff0d6c87fe4a3537 |
|
utils.py
| https://github.com/python/cpython/pull/139768/files#diff-34c6890d4496d64ae92adf20a3cdb34c78bd62293e00e4376de0fdf8f0a133d8 |
|
2025-10-08-15-36-00.gh-issue-139489.W46tvn.rst
| https://github.com/python/cpython/pull/139768/files#diff-0f3d947503f385c904572118b0ac8d1c70040bcc743019cf153442999aeb5482 |
| Doc/library/xml.rst | https://github.com/python/cpython/pull/139768/files#diff-d6ce2d53bcf20763d2f58b11018a9bfe0ea5e0ccfa3a027922dede23f024cf32 |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/3245a65da4acc3796432a7716ee9211ceb386f31/Doc/library/xml.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139768/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139768/files#diff-d6ce2d53bcf20763d2f58b11018a9bfe0ea5e0ccfa3a027922dede23f024cf32 |
| picnixz | https://github.com/picnixz |
| May 2, 2026 | https://github.com/python/cpython/pull/139768/files#r3176744976 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
| vstinner | https://github.com/vstinner |
| May 2, 2026 | https://github.com/python/cpython/pull/139768/files#r3176936596 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
| picnixz | https://github.com/picnixz |
| May 2, 2026 | https://github.com/python/cpython/pull/139768/files#r3176938575 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| May 2, 2026 | https://github.com/python/cpython/pull/139768/files#r3176983974 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
| picnixz | https://github.com/picnixz |
| May 2, 2026 | https://github.com/python/cpython/pull/139768/files#r3177038899 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
|
| https://github.com/python/cpython/pull/139768/files#diff-d6ce2d53bcf20763d2f58b11018a9bfe0ea5e0ccfa3a027922dede23f024cf32 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116 |
| Doc/whatsnew/3.15.rst | https://github.com/python/cpython/pull/139768/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/3245a65da4acc3796432a7716ee9211ceb386f31/Doc/whatsnew/3.15.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139768/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139768/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
| https://github.com/python/cpython/pull/139768/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
| Lib/test/test_xml.py | https://github.com/python/cpython/pull/139768/files#diff-fe3b1407d9669dfd5e997e92106c88607d72385c4f577be9825d3183e731c3a6 |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/3245a65da4acc3796432a7716ee9211ceb386f31/Lib/test/test_xml.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139768/{{ revealButtonHref }} |
| Lib/xml/__init__.py | https://github.com/python/cpython/pull/139768/files#diff-7233d3b7e183e198816856f342b5d660951544a33641236cff0d6c87fe4a3537 |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/3245a65da4acc3796432a7716ee9211ceb386f31/Lib/xml/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139768/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/139768/files#diff-7233d3b7e183e198816856f342b5d660951544a33641236cff0d6c87fe4a3537 |
| Lib/xml/utils.py | https://github.com/python/cpython/pull/139768/files#diff-34c6890d4496d64ae92adf20a3cdb34c78bd62293e00e4376de0fdf8f0a133d8 |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/3245a65da4acc3796432a7716ee9211ceb386f31/Lib/xml/utils.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139768/{{ revealButtonHref }} |
| picnixz | https://github.com/picnixz |
| May 2, 2026 | https://github.com/python/cpython/pull/139768/files#r3176746395 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
| vstinner | https://github.com/vstinner |
| May 2, 2026 | https://github.com/python/cpython/pull/139768/files#r3176940455 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/139768/files |
| Misc/NEWS.d/next/Library/2025-10-08-15-36-00.gh-issue-139489.W46tvn.rst | https://github.com/python/cpython/pull/139768/files#diff-0f3d947503f385c904572118b0ac8d1c70040bcc743019cf153442999aeb5482 |
|
View file
| https://github.com/serhiy-storchaka/cpython/blob/3245a65da4acc3796432a7716ee9211ceb386f31/Misc/NEWS.d/next/Library/2025-10-08-15-36-00.gh-issue-139489.W46tvn.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/139768/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/139768/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 |