Skip to content

gh-114737: Revert change to ElementTree.iterparse "root" attribute - #114755

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
colesbury:gh-114737
Jan 31, 2024
Merged

serhiy-storchaka merged 3 commits into
python:mainfrom
colesbury:gh-114737

Conversation

@colesbury

@colesbury colesbury commented Jan 30, 2024 •

Copy link
Copy Markdown
Contributor

Prior to gh-114269, the iterator returned by ElementTree.iterparse was initialized with the root attribute as None. This restores the previous behavior.

Thanks to Prometheus3375 for pointing this out.

Prior to pythongh-114269, the iterator returned by ElementTree.iterparse was
initialized with the root attribute as None. This restores the previous
behavior.
@colesbury

Copy link
Copy Markdown
Contributor Author
Comment thread Lib/test/test_xml_etree.py Resolved
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Comment thread Lib/xml/etree/ElementTree.py Resolved

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@serhiy-storchaka serhiy-storchaka added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Jan 31, 2024
@serhiy-storchaka
serhiy-storchaka merged commit 66f95ea into python:main Jan 31, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request 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>
@bedevere-app

bedevere-app Bot commented Jan 31, 2024

Copy link
Copy Markdown

GH-114798 is a backport of this pull request to the 3.12 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request 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>
@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Jan 31, 2024
@bedevere-app

bedevere-app Bot commented Jan 31, 2024

Copy link
Copy Markdown

GH-114799 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.11 only security fixes label Jan 31, 2024
serhiy-storchaka pushed a commit that referenced this pull request Jan 31, 2024
…bute (GH-114755) (GH-114798)

Prior to gh-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>
serhiy-storchaka pushed a commit that referenced this pull request Jan 31, 2024
…bute (GH-114755) (GH-114799)

Prior to gh-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>
aisk pushed a commit to aisk/cpython that referenced this pull request 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.
@colesbury
colesbury deleted the gh-114737 branch April 8, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants