Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-36543: Restore cElementTree and mark it for removal in 3.10#19921

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
tiran wants to merge2 commits intopython:masterfromtiran:restore_celementtree

Conversation

tiran
Copy link
Member

@tirantiran commentedMay 5, 2020
edited
Loading

  • Restorexml.etree.cElementTree
  • Schedule the module for removal in 3.10
  • Add aPendingDeprecationWarning

https://bugs.python.org/issue36543

@tirantiran changed the titlebpo-36453: Restore cElementTree and mark it for removal 3.10bpo-36453: Restore cElementTree and mark it for removal in 3.10May 5, 2020
@tirantiranforce-pushed therestore_celementtree branch fromc10d287 to1372fe1CompareMay 5, 2020 11:57
@tirantiran changed the titlebpo-36453: Restore cElementTree and mark it for removal in 3.10bpo-36543: Restore cElementTree and mark it for removal in 3.10May 5, 2020
Copy link
Contributor

@scoderscoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM.
Do we need a News entry for this? It's only reverting an alpha change.

@@ -616,6 +616,10 @@ Deprecated
`parso`_.
(Contributed by Carl Meyer in :issue:`40360`.)

* The :mod:`xml.etree.cElementTree` module has been deprecated since Python
3.3 and is scheduled to be removed in Python 3.10.
(Contributed by Serhiy Storchaka and Christian Heemes in :issue:`36543`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

A typo in your own name? That's rare, I guess. ;-)

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You wouldn't believe me 👍

_warn(
"xml.etree.cElementTree is deprecated, use xml.etree.ElementTree instead",
PendingDeprecationWarning
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
)
)
del_warn

@scoder
Copy link
Contributor

Let's got withGH-19920 instead, shall we?

@tirantiranforce-pushed therestore_celementtree branch from1372fe1 to23bb770CompareMay 15, 2020 17:38
Signed-off-by: Christian Heimes <christian@python.org>
@tirantiranforce-pushed therestore_celementtree branch from23bb770 to99cd4efCompareMay 15, 2020 17:41
@tirkarthi
Copy link
Member

With 3.9 branch created the PR pointed to master will go in for 3.10.

tiran reacted with heart emoji

@tirantiran added the needs backport to 3.9only security fixes labelMay 19, 2020
tiran added a commit to tiran/pip that referenced this pull requestMay 20, 2020
It's been deprecated and will be removed in 3.9 or 3.10. 3.9.0b1 doesn'thave cElementTree. I'd like to bring it back with a deprecation warningto drop in 3.10.See:python/cpython#19921Signed-off-by: Christian Heimes <christian@python.org>
@@ -626,6 +626,10 @@ Deprecated
`parso`_.
(Contributed by Carl Meyer in :issue:`40360`.)

* The :mod:`xml.etree.cElementTree` module has been deprecated since Python
3.3 and is scheduled to be removed in Python 3.10.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Use more direct wording:

  • clearer
  • similar to that in xml.etree.elementtree.rst
  • fewer words = more readable
Suggested change
3.3 andis scheduled to be removed in Python 3.10.
3.3 andwill be removed in Python 3.10.

gsnedders pushed a commit to gsnedders/html5lib-python that referenced this pull requestJun 10, 2020
It's been deprecated and will be removed in 3.9 or 3.10. 3.9.0b1 doesn'thave cElementTree. I'd like to bring it back with a deprecation warningto drop in 3.10.See:python/cpython#19921Signed-off-by: Christian Heimes <christian@python.org>Signed-off-by: Sam Sneddon <me@gsnedders.com>
@scoder
Copy link
Contributor

I merged#20117, which reverts the removal.

@scoderscoder closed thisJun 10, 2020
gsnedders pushed a commit to gsnedders/html5lib-python that referenced this pull requestJun 17, 2020
It's been deprecated and will be removed in 3.9 or 3.10. 3.9.0b1 doesn'thave cElementTree. I'd like to bring it back with a deprecation warningto drop in 3.10.See:python/cpython#19921Signed-off-by: Christian Heimes <christian@python.org>Signed-off-by: Sam Sneddon <me@gsnedders.com>
gsnedders pushed a commit to html5lib/html5lib-python that referenced this pull requestJun 17, 2020
It's been deprecated and will be removed in 3.9 or 3.10. 3.9.0b1 doesn'thave cElementTree. I'd like to bring it back with a deprecation warningto drop in 3.10.See:python/cpython#19921Signed-off-by: Christian Heimes <christian@python.org>Signed-off-by: Sam Sneddon <me@gsnedders.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@scoderscoderscoder left review comments

@hugovkhugovkhugovk left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@tiran@scoder@tirkarthi@hugovk@the-knights-who-say-ni@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp