-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Documentation: XML Element - pi objects instead of comment objects #108848
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
Conversation
update regarding second commit : docstring and source code say it's a process instruction |
@@ -661,7 +661,7 @@ Functions | |||
given. Returns an element instance, representing a processing instruction. | |||
|
|||
Note that :class:`XMLParser` skips over processing instructions | |||
in the input instead of creating comment objects for them. An | |||
in the input instead of creating pi objects for them. An |
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.
Is it clear? Maybe use "processing instruction objects"?
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.
LGTM.
Thanks @christopheNan for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
PI objects instead of comment objects. (cherry picked from commit de6f97c) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
GH-114854 is a backport of this pull request to the 3.12 branch. |
PI objects instead of comment objects. (cherry picked from commit de6f97c) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
GH-114855 is a backport of this pull request to the 3.11 branch. |
PI objects instead of comment objects.
Pour information, la traduction m'a amené à créer cette [PR](python/cpython#108848) dans CPython. Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/187 Reviewed-by: Julien Palard <julien@palard.fr> Co-authored-by: Christophe Nanteuil <christophe.nanteuil@gmail.com> Co-committed-by: Christophe Nanteuil <christophe.nanteuil@gmail.com>
While translating the XML documentation in French, I noticed that this would better describe the mechanism of parsing.
📚 Documentation preview 📚: https://cpython-previews--108848.org.readthedocs.build/