Skip to content

gh-94383: Remove ElementTree.Element.copy() method #94384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2022
Merged

gh-94383: Remove ElementTree.Element.copy() method #94384

merged 1 commit into from
Jul 4, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 28, 2022

xml.etree: Remove the ElementTree.Element.copy() method of the pure
Python implementation, use the copy.copy() function instead. The C
implementation of xml.etree has no copy() method, only a copy()
method.

@vstinner vstinner marked this pull request as ready for review June 28, 2022 12:43
xml.etree: Remove the ElementTree.Element.copy() method of the pure
Python implementation, deprecated in Python 3.10, use the copy.copy()
function instead. The C implementation of xml.etree has no copy()
method, only a __copy__() method.
@vstinner
Copy link
Member Author

@serhiy-storchaka: Would you mind to review the updated PR?

@vstinner vstinner merged commit fd76eb5 into python:main Jul 4, 2022
@vstinner vstinner deleted the etree branch July 4, 2022 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants