René's URL Explorer Experiment


Title: gh-139489: Add xml.is_valid_name() by serhiy-storchaka · Pull Request #139768 · python/cpython · GitHub

Open Graph Title: gh-139489: Add xml.is_valid_name() by serhiy-storchaka · Pull Request #139768 · python/cpython

X Title: gh-139489: Add xml.is_valid_name() by serhiy-storchaka · Pull Request #139768 · python/cpython

Description: 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/

Open Graph Description: 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/

X Description: 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/

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:472b7098-f2df-c547-cd33-2f3c8287fb7a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id843E:765B8:7A6633:A97F87:6A57DC0A
html-safe-noncedbed44de0c3e0ebfdaf5491506f39b6e42560e74708668da20fa8922397f34d6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDNFOjc2NUI4OjdBNjYzMzpBOTdGODc6NkE1N0RDMEEiLCJ2aXNpdG9yX2lkIjoiNzU3MDQzOTA4MTc4MzM2Nzc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0fa36acc8637c799350e3afdb913e56119e2438f06a18c1d50f2d505d848c20c
hovercard-subject-tagpull_request:2897304851
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/139768/files
twitter:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
og:image:altIt 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca
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
release36b9c371e4e031091f1b89adf913d9e6993943df
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 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%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
Reloadhttps://github.com/python/cpython/pull/139768/files
Reloadhttps://github.com/python/cpython/pull/139768/files
Reloadhttps://github.com/python/cpython/pull/139768/files
Please reload this pagehttps://github.com/python/cpython/pull/139768/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:xml-sax-utils-is_valid_namehttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/139768/files
Please reload this pagehttps://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.rsthttps://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
picnixzhttps://github.com/picnixz
May 2, 2026https://github.com/python/cpython/pull/139768/files#r3176744976
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139768/files
vstinnerhttps://github.com/vstinner
May 2, 2026https://github.com/python/cpython/pull/139768/files#r3176936596
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139768/files
picnixzhttps://github.com/picnixz
May 2, 2026https://github.com/python/cpython/pull/139768/files#r3176938575
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139768/files
serhiy-storchakahttps://github.com/serhiy-storchaka
May 2, 2026https://github.com/python/cpython/pull/139768/files#r3176983974
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139768/files
picnixzhttps://github.com/picnixz
May 2, 2026https://github.com/python/cpython/pull/139768/files#r3177038899
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://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.rsthttps://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.pyhttps://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__.pyhttps://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.pyhttps://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 }}
picnixzhttps://github.com/picnixz
May 2, 2026https://github.com/python/cpython/pull/139768/files#r3176746395
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139768/files
vstinnerhttps://github.com/vstinner
May 2, 2026https://github.com/python/cpython/pull/139768/files#r3176940455
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/139768/files
Misc/NEWS.d/next/Library/2025-10-08-15-36-00.gh-issue-139489.W46tvn.rsthttps://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 pagehttps://github.com/python/cpython/pull/139768/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.