Skip to content

gh-128805: Clarify cElementTree deprecation notice#144459

Open
kovan wants to merge 1 commit intopython:mainfrom
kovan:gh-128805-celementtree-deprecation
Open

gh-128805: Clarify cElementTree deprecation notice#144459
kovan wants to merge 1 commit intopython:mainfrom
kovan:gh-128805-celementtree-deprecation

Conversation

@kovan
Copy link
Contributor

@kovan kovan commented Feb 3, 2026

Summary

  • Clarifies that xml.etree.cElementTree is an alias for xml.etree.ElementTree
  • Advises users to use xml.etree.ElementTree directly instead

The existing deprecation notice was confusing because it mentioned cElementTree without explaining its relationship to ElementTree, leading users to wonder if the entire ElementTree module was deprecated.

Test plan

  • Verified Lib/xml/etree/cElementTree.py is indeed just an alias that imports from xml.etree.ElementTree
  • make check passes
  • make html builds successfully

🤖 Generated with Claude Code


📚 Documentation preview 📚: https://cpython-previews--144459.org.readthedocs.build/

The deprecation notice for xml.etree.cElementTree was confusing because
it didn't explain what cElementTree is. This change clarifies that
cElementTree is an alias for ElementTree and that users should use
xml.etree.ElementTree directly instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant