-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-139489: Add xml.sax.saxutils.is_valid_name() #139768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
gh-139489: Add xml.sax.saxutils.is_valid_name() #139768
Conversation
It allows to check whether a string can be used as an element or attribute name in XML.
Doc/whatsnew/3.15.rst
Outdated
xml.sax.utils | ||
------------- | ||
|
||
* Add the :func:`~xml.sax.utils.is_valid_name` function, which allows to check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Add the :func:`~xml.sax.utils.is_valid_name` function, which allows to check | |
* Add the :func:`~xml.sax.saxutils.is_valid_name` function, which allows to check |
While sax.utils exists, the documented module is saxutils.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for noticing. More changes there were needed.
Why not adding the function in the The function doesn't seem to be specific to the sax implementation. Is it? |
There is no an |
I'm suggesting to create such |
This is an interesting idea. |
It allows to check whether a string can be used as an element or attribute name in XML.
📚 Documentation preview 📚: https://cpython-previews--139768.org.readthedocs.build/