-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Fix unintended behavior change in elementtree introduced in #114269 #114737
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
Comments
colesbury
added a commit
to colesbury/cpython
that referenced
this issue
Jan 30, 2024
Prior to pythongh-114269, the iterator returned by ElementTree.iterparse was initialized with the root attribute as None. This restores the previous behavior.
serhiy-storchaka
pushed a commit
that referenced
this issue
Jan 31, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 31, 2024
…ute (pythonGH-114755) Prior to pythongh-114269, the iterator returned by ElementTree.iterparse was initialized with the root attribute as None. This restores the previous behavior. (cherry picked from commit 66f95ea) Co-authored-by: Sam Gross <colesbury@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 31, 2024
…ute (pythonGH-114755) Prior to pythongh-114269, the iterator returned by ElementTree.iterparse was initialized with the root attribute as None. This restores the previous behavior. (cherry picked from commit 66f95ea) Co-authored-by: Sam Gross <colesbury@gmail.com>
Thank you for your report @Prometheus3375. |
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…ute (pythonGH-114755) Prior to pythongh-114269, the iterator returned by ElementTree.iterparse was initialized with the root attribute as None. This restores the previous behavior.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
As it was discussed here, after merging of #114269
it.root
is no longerNone
once an iterator is created. There was no intention to change this, it should be reverted.Meanwhile, I think it will be good to add test for
root
attribute.it.root
must beNone
.it.root
must be an instance ofxml.etree.ElementTree.Element
.CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Linked PRs
The text was updated successfully, but these errors were encountered: