Skip to content

Deprecate modules listed in PEP 594 #91217

Description

@brettcannon
BPO 47061
Nosy @warsaw, @brettcannon, @hugovk, @miss-islington, @tirkarthi
PRs
  • bpo-47061: document module deprecations due to PEP 594 #31984
  • [3.10] bpo-47061: document module deprecations due to PEP 594 (GH-31984) #32039
  • [3.9] bpo-47061: document module deprecations due to PEP 594 (GH-31984) #32082
  • bpo-47061: deprecate the aifc module #32134
  • bpo-47061: use warnings._deprecated() with asynchat, asyncore, and smtpd #32350
  • bpo-47061: deprecate audioop #32392
  • bpo-47061: deprecate cgi and cgitb #32410
  • Dependencies
  • 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 = None
    created_at = <Date 2022-03-18.19:46:10.638>
    labels = ['deferred-blocker', 'library', '3.11']
    title = 'Deprecate modules listed in PEP 594'
    updated_at = <Date 2022-04-08.03:39:21.812>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2022-04-08.03:39:21.812>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-03-18.19:46:10.638>
    creator = 'brett.cannon'
    dependencies = ['47022']
    files = []
    hgrepos = []
    issue_num = 47061
    keywords = ['patch']
    message_count = 8.0
    messages = ['415521', '415525', '415725', '415732', '415733', '415906', '416804', '416896']
    nosy_count = 5.0
    nosy_names = ['barry', 'brett.cannon', 'hugovk', 'miss-islington', 'xtreak']
    pr_nums = ['31984', '32039', '32082', '32134', '32350', '32392', '32410']
    priority = 'deferred blocker'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue47061'
    versions = ['Python 3.11']

    Activity

    1. brettcannon commented on Mar 18, 2022

      @brettcannon
      MemberAuthor
    2. self-assigned this
      on Mar 18, 2022
    3. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Mar 18, 2022
    4. changed the title [-]Document PEP 594 deprecations[/-] [+]Deprecate modules listed in PEP 594[/+] on Mar 18, 2022
    5. brettcannon commented on Mar 18, 2022

      @brettcannon
      MemberAuthor

      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.

    6. miss-islington commented on Mar 21, 2022

      @miss-islington
      Contributor

      New changeset 9ac2de9 by Brett Cannon in branch 'main':
      bpo-47061: document module deprecations due to PEP-594 (GH-31984)
      9ac2de9

    7. miss-islington commented on Mar 22, 2022

      @miss-islington
      Contributor

      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

    8. brettcannon commented on Mar 22, 2022

      @brettcannon
      MemberAuthor

      One thing I forgot to mention is that I will be updating What's New as the code deprecations land.

    9. miss-islington commented on Mar 23, 2022

      @miss-islington
      Contributor

      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

    10. brettcannon commented on Apr 5, 2022

      @brettcannon
      MemberAuthor

      New changeset c1d93b6 by Brett Cannon in branch 'main':
      bpo-47061: deprecate the aifc module (GH-32134)
      c1d93b6

    11. brettcannon commented on Apr 6, 2022

      @brettcannon
      MemberAuthor

      New changeset 32b3387 by Brett Cannon in branch 'main':
      bpo-47061: use warnings._deprecated() with asynchat, asyncore, and smtpd (GH-32350)
      32b3387

    12. transferred this issue fromon Apr 10, 2022
    13. brettcannon commented on Apr 11, 2022

      @brettcannon
      MemberAuthor

      Should close #89337 once nis is deprecated.

    14. 10 remaining items

    15. added a commit that references this issue on Apr 17, 2022
    16. added 4 commits that reference this issue on Apr 22, 2022
    17. vstinner commented on Apr 26, 2022

      @vstinner
      Member

      I created the PR #91951 to deprecate the mailcap module (see issue #68966).

    18. added a commit that references this issue on Apr 26, 2022
    19. added 2 commits that reference this issue on Apr 28, 2022
    20. gnat commented on Apr 19, 2023

      @gnat

      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.

    21. hugovk commented on Apr 19, 2023

      @hugovk
      Member
    22. brettcannon commented on May 3, 2023

      @brettcannon
      MemberAuthor

      Is deprecating CGI a logical thing to do here? Was there any real benefit to this?

      Yes, please read the PEP for the motivation.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.11only security fixesdeferred-blockerstdlibStandard Library Python modules in the Lib/ directory

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions