Fundamentals 4 min read

Python 3.13 Removes 19 Standard Library Modules (PEP 594) and Related Changes

Python 3.13 eliminates 19 standard‑library modules under PEP 594, deprecates the 2to3 tool, and follows earlier removals in Python 3.12, while discussing the controversy, migration guidance, and release schedule for the upcoming versions.

Python Programming Learning Circle
Python Programming Learning Circle
Python Programming Learning Circle
Python 3.13 Removes 19 Standard Library Modules (PEP 594) and Related Changes

In Python 3.13, 19 modules from the standard library are removed as part of the implementation of PEP 594, which was originally deprecated in Python 3.11. The removed modules are aifc , audioop , cgi , cgitb , chunk , crypt , imghdr , mailcap , msilib , nis , nntplib , ossaudiodev , pipes , sndhdr , spwd , sunau , telnetlib , uu and xdrlib .

Additionally, the 2to3 program and the lib2to3 module are removed; the PEG parser introduced by PEP 617 was already deprecated in Python 3.11.

Python 3.12 had previously removed five stdlib modules: asynchat , asyncore , smtpd (PEP 594), distutils (PEP 632), and imp (replaced by importlib ).

Among all removed modules, the most troublesome are distutils , imp , and cgi .

Python 3.12’s new features and Python 3.13’s removal list include suggested replacements, and only a few modules lack known alternatives at present.

PEP 594 is controversial: while many developers value a large, practical stdlib, the steering committee decided to proceed with the removal to gather user feedback and give the ecosystem time to adapt.

The maintenance of the removed modules has been shifted outside the Python core; users now must organize their own maintenance because the core team, composed mainly of volunteers, lacks the capacity to maintain roughly 300 stdlib modules and their C extensions.

The final release of Python 3.12 is planned for October 2023, and the final release of Python 3.13 is scheduled for October 2024.

Pythonstandard-librarymodule removalPEP-594Python 3.13
Python Programming Learning Circle
Written by

Python Programming Learning Circle

A global community of Chinese Python developers offering technical articles, columns, original video tutorials, and problem sets. Topics include web full‑stack development, web scraping, data analysis, natural language processing, image processing, machine learning, automated testing, DevOps automation, and big data.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.