Skip to content

gh-128805: Clarify the deprecation notice of xml.etree.cElementTree - #156779

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-128805-celementtree-notice
Sep 3, 2026
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-128805-celementtree-notice

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

The notice was read as deprecating xml.etree.ElementTree itself, because the page does not mention cElementTree anywhere else, so there is nothing to tell the reader that it is only an alias.

Saying that the alias is deprecated is enough to scope it.

This revives GH-144459, which was closed for reasons unrelated to its content.

…Tree

It was read as deprecating xml.etree.ElementTree itself, because the page
does not mention cElementTree anywhere else.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34334078 | 📁 Comparing 3587780 against main (374851f)

  🔍 Preview build  

1 file changed
± library/xml.etree.elementtree.html

@serhiy-storchaka
serhiy-storchaka merged commit 50ed1ec into python:main Sep 3, 2026
46 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Sep 3, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@serhiy-storchaka
serhiy-storchaka deleted the gh-128805-celementtree-notice branch September 3, 2026 09:29
@bedevere-app

bedevere-app Bot commented Sep 3, 2026

Copy link
Copy Markdown

GH-156883 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Sep 3, 2026
@bedevere-app

bedevere-app Bot commented Sep 3, 2026

Copy link
Copy Markdown

GH-156884 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 3, 2026
@bedevere-app

bedevere-app Bot commented Sep 3, 2026

Copy link
Copy Markdown

GH-156885 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 3, 2026
serhiy-storchaka added a commit that referenced this pull request Sep 3, 2026
…tTree (GH-156779) (GH-156885)

It was read as deprecating xml.etree.ElementTree itself, because the page
does not mention cElementTree anywhere else.
(cherry picked from commit 50ed1ec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Sep 3, 2026
…tTree (GH-156779) (GH-156884)

It was read as deprecating xml.etree.ElementTree itself, because the page
does not mention cElementTree anywhere else.
(cherry picked from commit 50ed1ec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
hugovk pushed a commit that referenced this pull request Sep 5, 2026
…tTree (GH-156779) (#156883)

gh-128805: Clarify the deprecation notice of xml.etree.cElementTree (GH-156779)

It was read as deprecating xml.etree.ElementTree itself, because the page
does not mention cElementTree anywhere else.
(cherry picked from commit 50ed1ec)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Sep 12, 2026
…Tree (pythonGH-156779)

It was read as deprecating xml.etree.ElementTree itself, because the page
does not mention cElementTree anywhere else.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants