]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139489: Add xml.is_valid_name() (GH-139768)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 5 May 2026 08:25:22 +0000 (11:25 +0300)
committerGitHub <noreply@github.com>
Tue, 5 May 2026 08:25:22 +0000 (11:25 +0300)
commita76d9573e45dc11cb0909154fa3e68591dfab85f
treec5e75a740aa7d9984791f0e378ca8b243c85f937
parent02d02f44fed5931b07dfa7db2551fbaff44c99ce
gh-139489: Add xml.is_valid_name() (GH-139768)

It allows to check whether a string can be used as an element or attribute
name in XML.
Doc/library/xml.rst
Doc/whatsnew/3.15.rst
Lib/test/test_xml.py [new file with mode: 0644]
Lib/xml/__init__.py
Lib/xml/utils.py [new file with mode: 0644]
Misc/NEWS.d/next/Library/2025-10-08-15-36-00.gh-issue-139489.W46tvn.rst [new file with mode: 0644]