You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-47022: PEP 594: Document removal of asynchat, asyncore and smtpd
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/brettcannon'closed_at=Nonecreated_at=<Date2022-03-18.19:46:10.638>labels= ['deferred-blocker', 'library', '3.11']
title='Deprecate modules listed in PEP 594'updated_at=<Date2022-04-08.03:39:21.812>user='https://github.com/brettcannon'
The SC has asked that all modules deprecated by PEP-594 have the documented deprecation backported. The message should also not have any specific removal version to avoid any potential delay, but then making the bugfix-only docs incorrect.
The first PR for documenting the modules is up. Once this gets merged and backported I will add a helper function in warnings and then make the appropriate code changes.
Is deprecating CGI a logical thing to do here? Was there any real benefit to this?
There's very likely going to be breakage from this in the Python ecosystem. Deprecating CGI is kind of like deprecating HTTP or JSON or CSV.. it's a very well established standard.
Just because "my current project at work" doesn't use something, doesn't mean it should go into the trashbin for everybody. Seems totally random.
Activity
brettcannon commentedon Mar 18, 2022
https://peps.python.org/pep-0594/
The SC has asked that all modules deprecated by PEP-594 have the documented deprecation backported. The message should also not have any specific removal version to avoid any potential delay, but then making the bugfix-only docs incorrect.
[-]Document PEP 594 deprecations[/-][+]Deprecate modules listed in PEP 594[/+]brettcannon commentedon Mar 18, 2022
The first PR for documenting the modules is up. Once this gets merged and backported I will add a helper function in
warningsand then make the appropriate code changes.miss-islington commentedon Mar 21, 2022
New changeset 9ac2de9 by Brett Cannon in branch 'main':
bpo-47061: document module deprecations due to PEP-594 (GH-31984)
9ac2de9
miss-islington commentedon Mar 22, 2022
New changeset c353835 by Miss Islington (bot) in branch '3.10':
[3.10] bpo-47061: document module deprecations due to PEP-594 (GH-31984) (GH-32039)
c353835
brettcannon commentedon Mar 22, 2022
One thing I forgot to mention is that I will be updating What's New as the code deprecations land.
miss-islington commentedon Mar 23, 2022
New changeset e513b81 by Hugo van Kemenade in branch '3.9':
[3.9] bpo-47061: document module deprecations due to PEP-594 (GH-31984) (GH-32082)
e513b81
brettcannon commentedon Apr 5, 2022
New changeset c1d93b6 by Brett Cannon in branch 'main':
bpo-47061: deprecate the
aifcmodule (GH-32134)c1d93b6
brettcannon commentedon Apr 6, 2022
New changeset 32b3387 by Brett Cannon in branch 'main':
bpo-47061: use
warnings._deprecated()with asynchat, asyncore, and smtpd (GH-32350)32b3387
brettcannon commentedon Apr 11, 2022
Should close #89337 once
nisis deprecated.10 remaining items
gh-91217: deprecate ossaudiodev (GH-91641)
gh-91217: deprecate-pipes (GH-91779)
gh-91217: deprecate-sndhdr (#91806)
gh-91217: deprecate spwd (#91846)
gh-91217: deprecate sunau (GH-91866)
vstinner commentedon Apr 26, 2022
I created the PR #91951 to deprecate the mailcap module (see issue #68966).
gh-91217: deprecate telnetlib (GH-91958)
gh-91217: deprecate uu (GH-92009)
gh-91217: deprecate xdrlib (GH-92066)
gnat commentedon Apr 19, 2023
Is deprecating CGI a logical thing to do here? Was there any real benefit to this?
There's very likely going to be breakage from this in the Python ecosystem. Deprecating CGI is kind of like deprecating HTTP or JSON or CSV.. it's a very well established standard.
Just because "my current project at work" doesn't use something, doesn't mean it should go into the trashbin for everybody. Seems totally random.
hugovk commentedon Apr 19, 2023
cgi has been moved to a separate package on PyPI that you can use instead:
https://discuss.python.org/t/pep-594-take-2-removing-dead-batteries-from-the-standard-library/13508/23?u=hugovk
https://pypi.org/project/legacy-cgi/
brettcannon commentedon May 3, 2023
Yes, please read the PEP for the motivation.