-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
gh-72719: Remove deprecated asyncore
and asynchat
modules
#96580
Conversation
92a5bab
to
97d7bc8
Compare
113731a
to
99e3de9
Compare
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 |
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 |
@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. |
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>
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to remove the second sentence. I prefer to hide them as well as possible :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thank you for the review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
When I removed the module last year (commit), I even renamed the asyncore module to |
sure, no problem |
Done, all three - removed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Merged, thanks. Let's see how it goes with Python 3.12. |
Thank you for your guidance and help! |
Several notes:
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 @vstinnerTODO
items about completely removing these modules in the futurePEP: https://peps.python.org/pep-0594/