Skip to content

gh-93607: document root attribute of iterparse #1

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

Closed
wants to merge 2 commits into from

Conversation

Prometheus3375
Copy link
Owner

Issue python#93607

@Prometheus3375
Copy link
Owner Author

Feel free to change wording or fix grammar.

@@ -627,6 +627,9 @@ Functions
blocking reads on *source* (or the file it names). As such, it's unsuitable
for applications where blocking reads can't be made. For fully non-blocking
parsing, see :class:`XMLPullParser`.

Once *source* is fully read, the returned :term:`iterator` object is populated with `root`
attribute which references to the root element of the resulting XML tree.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a root attribute reads a bit better, and for formatting iirc sphinx needs to be surrounded by two grave symbols instead of just one

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@Prometheus3375
Copy link
Owner Author

Prometheus3375 commented Nov 12, 2022

I've just noticed that I created this PR incorrectly. So I created a new branch and then PR in python/cpython.

python#99410

@Prometheus3375 Prometheus3375 deleted the Prometheus3375-iterparse-root-docs branch November 12, 2022 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants