← 返回首页
Remove xml.etree.ElementTree.Element.copy() (Python implementation): use copy.copy() instead · Issue #94383 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Remove xml.etree.ElementTree.Element.copy() (Python implementation): use copy.copy() instead #94383

New issue
New issue

Description

The xml.etree.ElementTree.Element.copy() method (Python implementation) was deprecated in Python 3.10 by commit 7d952de: see issue #76605 for the rationale.

The method only exists in the pure Python implementation. The C implementation only has a __copy__() method.

Use copy.copy() instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    • Open in GitHub Copilot app

    Footer

    © 2026 GitHub, Inc.