Skip to content

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

Description

@vstinner

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions