GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PEP 594: Remove stdlib modules scheduled for deletion in Python 3.13 · Issue #104773 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
Closed
PEP 594: Remove stdlib modules scheduled for deletion in Python 3.13#104773
Copy link
Labels
3.13only security fixesonly security fixes

Description

@vstinner
vstinner
opened on May 22, 2023
Issue body actions

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

  • gh-104773: PEP 594: Remove the sndhdr module #104774
  • gh-104773: PEP 594: Remove cgi and cgitb modules #104775
  • gh-104773: PEP 594: Remove the imghdr module #104777
  • gh-104773: PEP 594: Remove the telnetlib module #104778
  • gh-104773: PEP 594: Remove the pipes module #104848
  • gh-104773: PEP 594: Remove the ossaudiodev module #104862
  • gh-104773: PEP 594: Remove the sunau module #104863
  • gh-104773: Remove OSSAUDIODEV_LIBS variable #104864
  • gh-104773: PEP 594: Remove the mailcap module #104867
  • gh-104773: PEP 594: Remove the chunk module #104868
  • gh-104773: PEP 594: Remove the spwd module #104871
  • gh-104773: PEP 594: Remove the nntplib module #104894
  • gh-104773: PEP 594: Remove the nis module #104897
  • gh-104773: PEP 594: Remove the xdrlib module #104900
  • gh-104773: Fix PY_STDLIB_MOD_SET_NA() on macOS #104901
  • gh-104773: PEP 594: Remove the crypt module #104908
  • gh-104773: PEP 594: Remove the msilib package #104911
  • gh-104773: PEP 594: Remove the aifc module #104927
  • gh-104773: PEP 594: Remove the uu module #104932
  • gh-104773: PEP 594: Remove the aifc module #104933
  • gh-104773: PEP 594: Remove the audioop module #104937
  • gh-104773: cgi: Fix typo in What's New in Python 3.13 #105139

Activity

Next
  1. vstinner
    added 14 commits that reference this issue on May 22, 2023

    pythongh-104773: PEP 594: Remove the sndhdr module.

    61556e3

    pythongh-104773: PEP 594: Remove the sndhdr module

    d0361cc

    pythongh-104773: PEP 594: Remove cgi and cgitb modules

    4bf4c92

    pythongh-104773: PEP 594: Remove the sndhdr module

    fe475b0

    pythongh-104773: PEP 594: Remove cgi and cgitb modules

    82772f2

    pythongh-104773: PEP 594: Remove cgi and cgitb modules

    b32e052

    pythongh-104773: PEP 594: Remove the imghdr module

    4e4abb5

    pythongh-104773: PEP 594: Remove the imghdr module

    ab17e88

    pythongh-104773: PEP 594: Remove the telnetlib module

    936f74e

    pythongh-104773: PEP 594: Remove cgi and cgitb modules

    7a4a015

    pythongh-104773: PEP 594: Remove cgi and cgitb modules

    7cbc500

    pythongh-104773: PEP 594: Remove the telnetlib module

    16c3bea

    gh-104773: PEP 594: Remove the telnetlib module (#104778)

    9dc476b

    pythongh-104773: PEP 594: Remove cgi and cgitb modules

    b0d94a4
  2. hugovk
    added
    3.13only security fixesonly security fixes
    on May 23, 2023
  3. 61 remaining items

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

    pythongh-104773: PEP 594: Remove the imghdr module

    c2fc395

    pythongh-104773: PEP 594: Remove the imghdr module

    06b091c

    gh-104773: PEP 594: Remove the imghdr module (#104777)

    e399f46
  5. vstinner commented on May 26, 2023

    @vstinner
    vstinner
    on May 26, 2023
    MemberAuthor
    More actions

    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.

    Reacted by Hugo van Kemenade
  6. vstinner commented on May 26, 2023

    @vstinner
    vstinner
    on May 26, 2023
    MemberAuthor
    More actions

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

    Reacted by Hugo van Kemenade and Zachary Ware
  7. vstinner
    closed this as completedon May 26, 2023
  8. vstinner commented on May 26, 2023

    @vstinner
    vstinner
    on May 26, 2023
    MemberAuthor
    More actions

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

  9. vstinner
    added 2 commits that reference this issue on May 31, 2023

    pythongh-104773: cgi: Fix typo in What's New in Python 3.13

    5fd8694

    gh-104773: cgi: Fix typo in What's New in Python 3.13 (#105139)

    0430e97
  10. cclauss
    added 3 commits that reference this issue on May 11, 2024

    GitHub Actions: Test on Python 3.13 beta

    683a17a

    GitHub Actions: Test on Python 3.13 beta

    cb17a44

    Travis CI: Test on Python 3.13 beta

    cfd84cd
  11. ahupp
    added a commit that references this issue on May 15, 2024

    Travis CI: Test on Python 3.13 beta

    8eecfb7
  12. cclauss
    added a commit that references this issue on May 20, 2024

    Travis CI: Test on Python 3.13 beta

    129f9f1
  13. dutow
    added a commit that references this issue on Mar 30, 2026

    cpython: remove deprecated module support for 3.13+

    5866834
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 fixesonly security fixes

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.