← 返回首页
gh-72719: Remove deprecated `asyncore` and `asynchat` modules by sobolevn · Pull Request #96580 · 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

gh-72719: Remove deprecated asyncore and asynchat modules#96580

Merged
vstinner merged 7 commits into
python:mainfrom
sobolevn:issue-72719
Nov 8, 2022
Merged

gh-72719: Remove deprecated asyncore and asynchat modules#96580
vstinner merged 7 commits into
python:mainfrom
sobolevn:issue-72719

Conversation

sobolevn commented Sep 5, 2022
edited
Loading

Copy link
Copy Markdown
Member

Several notes:

  1. I followed the same path as smtpd in gh-93243: Make smtpd private before porting its users #93246 It was suggested in Remove asyncore, asynchat and smtpd modules #72719 (comment) by @vstinner
  2. I've added TODO items about completely removing these modules in the future

PEP: https://peps.python.org/pep-0594/

Comment thread .github/CODEOWNERS Show resolved Hide resolved
sobolevn force-pushed the issue-72719 branch 2 times, most recently from 92a5bab to 97d7bc8 Compare September 5, 2022 14:29
sobolevn requested a review from giampaolo September 5, 2022 14:31
Comment thread Doc/whatsnew/3.12.rst Outdated Show resolved Hide resolved

Copy link
Copy Markdown
Member

I think it would be great to have this PR merged before 3.12.0a1 (3 October, 2022, after 7 days) to allow third party library maintainers and early adopters to report scenarios possible in asyncore but not in asyncio as soon as possible.

Copy link
Copy Markdown
Member Author

Ping @pablogsal as release manager 🙂

Copy link
Copy Markdown
Member

Ping @pablogsal as release manager 🙂

Thanks for checking with me! One note, the RM for 3.12 is @Yhg1s so he should probably also take a look

sobolevn added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Sep 25, 2022

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @sobolevn for commit 99e3de9 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Sep 25, 2022

Copy link
Copy Markdown
Member

@Yhg1s Is there any chance to get this PR accepted into 3.12.0a1? It seems we've got some extra time until the release blockers are resolved.

Comment thread Misc/NEWS.d/next/Library/2022-09-05-17-08-56.gh-issue-72719.jUpzF3.rst Outdated Show resolved Hide resolved
…pzF3.rst Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Comment thread Doc/whatsnew/3.12.rst Show resolved Hide resolved
Comment thread Lib/test/support/asynchat.py Outdated Show resolved Hide resolved
Comment thread Lib/test/support/asyncore.py Outdated Show resolved Hide resolved
@@ -0,0 +1,3 @@
Remove modules :mod:`asyncore` and :mod:`asynchat`, which were deprecated by :pep:`594`.

They are temporarily moved to :mod:`test.support` so some other tests that rely on them keep working.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

I suggest to remove the second sentence. I prefer to hide them as well as possible :-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Done, thank you for the review!

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Please remove last references:

  • Doc/library/socketserver.rst
  • Doc/license.rst: update the module names

@giampaolo: Would you be ok to be removed from github/CODEOWNERS for asyncore/asynchat, so these files should not longer be updated but just die?

vstinner commented Nov 7, 2022

Copy link
Copy Markdown
Member

When I removed the module last year (commit), I even renamed the asyncore module to test.support._asyncore. But I don't mind to call it test.support.asyncore.

Copy link
Copy Markdown
Contributor

@giampaolo: Would you be ok to be removed from github/CODEOWNERS for asyncore/asynchat, so these files should not longer be updated but just die?

sure, no problem

sobolevn commented Nov 7, 2022

Copy link
Copy Markdown
Member Author

Done, all three - removed!

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Oh, there is now a conflict. Can you try to rebase your PR? Or try to merge main into your PR?

Please keep the license, files are still around, they are just moved somewhere else.

Comment thread Doc/license.rst Show resolved Hide resolved

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

LGTM.

vstinner commented Nov 8, 2022

Copy link
Copy Markdown
Member

Merged, thanks. Let's see how it goes with Python 3.12.

sobolevn commented Nov 8, 2022

Copy link
Copy Markdown
Member Author

Thank you for your guidance and help!
I feel happy now, removing old stuff is my kinda thing 😊 🎉

vstinner commented Nov 8, 2022

Copy link
Copy Markdown
Member

This comment was marked as off-topic.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

10 participants

Footer

© 2026 GitHub, Inc.