What’s New In Python 3.13

Release

3.13.0a0

Date

May 23, 2023

This article explains the new features in Python 3.13, compared to 3.12.

For full details, see the changelog.

Note

Prerelease users should be aware that this document is currently in draft form. It will be updated substantially as Python 3.13 moves towards release, so it’s worth checking back even after reading earlier versions.

Summary – Release highlights

New Features

Other Language Changes

New Modules

  • None yet.

Improved Modules

Optimizations

Deprecated

Removed

  • PEP 594: Remove the telnetlib module, deprecated in Python 3.11: use the projects telnetlib3 or Exscript instead. (Contributed by Victor Stinner in gh-104773.)

  • Namespaces typing.io and typing.re, deprecated in Python 3.8, are now removed. The items in those namespaces can be imported directly from typing. (Contributed by Sebastian Rittau in gh-92871.)

Porting to Python 3.13

This section lists previously described changes and other bugfixes that may require changes to your code.

Build Changes

C API Changes

New Features

Porting to Python 3.13

Deprecated

Removed