Skip to content

PEP 594: Remove stdlib modules scheduled for deletion in Python 3.13 #104773

Description

@vstinner

PEP 594 ("Removing dead batteries from the standard library") deprecated the following 19 modules in Python 3.11 (or before) and their removal in Python 3.13:

  • aifc
  • audioop
  • cgi
  • cgitb
  • chunk
  • crypt
  • imghdr
  • mailcap
  • msilib
  • nis
  • nntplib
  • ossaudiodev
  • pipes
  • sndhdr
  • spwd
  • sunau
  • telnetlib
  • uu
  • xdrlib

I propose to remove them as soon as possible in the Python 3.13 development cycle to help users to prepare for this incompatible change before Python 3.13 final release (scheduled for October 2024).

I plan to work on pull requests to remove these modules.

Linked PRs

Activity

  1. added 14 commits that reference this issue on May 22, 2023
  2. 61 remaining items

  3. added 3 commits that reference this issue on May 26, 2023
  4. vstinner commented on May 26, 2023

    @vstinner
    MemberAuthor

    Summary:

    • All modules scheduled for removal by PEP 594 have been removed in Python 3.12 and Python 3.13
    • The removal of the uu module makes 2 binascii functions useless and should be deprecated.
    • One minor thing that we missed in PEP 594 was the removal of the uu codec: https://peps.python.org/pep-0594/#uu-and-the-uu-encoding
    • I was wrong: we must not close all issues of removed modules, since bugs can still be fixed in Python 3.11 and 3.12: https://devguide.python.org/versions/

    The remaining minor task related to the uu encoding is covered by PR #92758.

    I'm not sure how to coordinate the work on helping third-party Python projects migrating to Python 3.13: move away from removed modules. But I prefer to not reuse this issue for this. Maybe discuss.python.org is a better place for that, since it's more visible than the Python bug tracker.

    I created python/peps#3156 to mark PEP 594 as Final.

  5. vstinner commented on May 26, 2023

    @vstinner
    MemberAuthor

    Thanks again to all reviewers of my PRs removing modules, especially @hugovk! Thanks @zware for handling msilib removal!

  6. vstinner commented on May 26, 2023

    @vstinner
    MemberAuthor

    I created a discussion on discuss.python.org: PEP 594 has been implementated: Python 3.13 removes 20 stdlib modules.

  7. added 2 commits that reference this issue on May 31, 2023
  8. added a commit that references this issue on May 15, 2024
  9. added a commit that references this issue on May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixes

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions