Python 3.13.0 (final) has been released

After all the shenanigans two weeks ago – everyone discovering nasty little problems in release candidate 2 – the last week was suspiciously quiet, and therefore I can finally say:

Python 3.13.0 is now available

This is the stable release of Python 3.13.0

Python 3.13.0 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. (Compared to the last release candidate, 3.13.0rc3, 3.13.0 contains two small bug fixes and some documentation and testing changes.)

Major new features of the 3.13 series, compared to 3.12

Some of the new major new features and changes in Python 3.13 are:

New features

Typing

Removals and new deprecations

  • PEP 594 (Removing dead batteries from the standard library) scheduled removals of many deprecated modules: aifc, audioop, chunk, cgi, cgitb, crypt, imghdr, mailcap, msilib, nis, nntplib, ossaudiodev, pipes, sndhdr, spwd, sunau, telnetlib, uu, xdrlib, lib2to3.
  • Many other removals of deprecated classes, functions and methods in various standard library modules.
  • C API removals and deprecations. (Some removals present in alpha 1 were reverted in alpha 2, as the removals were deemed too disruptive at this time.)
  • New deprecations, most of which are scheduled for removal from Python 3.15 or 3.16.

For more details on the changes to Python 3.13, see What’s new in Python 3.13.

More resources

We hope you enjoy the new releases!

Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation .

Choo-choo from the release train,

Your release team,
Thomas Wouters @thomas
Ned Deily @nad
Steve Dower @steve.dower
Łukasz Langa @ambv

50 Likes

WASI release at Release CPython 3.13.0 w/ WASI SDK 24 · brettcannon/cpython-wasi-build · GitHub .

4 Likes

Am I missing something or is there no And now for something completely different section this year?

1 Like

I’ve been unable to find any documentation for the new REPL. Maybe I missed something, but is there any? And if there isn’t at the moment, are there plans to add any?

Specifically, I’d like to know:

  1. What the default keybindings are (I can get the basics by experimentation, but beyond that it’s hard, short of trying random keypresses).
  2. Can history be saved between sessions? It doesn’t appear to be, by default.
2 Likes

There’s 16. Appendix — Python 3.13.0 documentation, but it’s fairly sparse and easily missed as it’s in the tutorial.

A

1 Like

Thanks, that’s all I found and as you say, it’s not a lot. I see there’s _pyrepl in the stdlib, which I guess is the code behind the new REPL, so I guess I could dive into that if necessary. But an overview of the basic functionality in the docs would be nice…

2 Likes

The official-ish CI images have been updated, with the following notables:

  • For Python 3.13 and beyond, both the GIL-full and free threading builds are available.
  • Python 3.8, now EOL’d has been dropped.
  • Python 3.14.0 from main (both GIL and FT) are available, but only until 3.14.0a0 is officially released, at which time the build-from-git-HEAD will be removed.
2 Likes

Yes. If it isn’t working, please report an issue. There was a problem in b3 that the history was not preserved: Python 3.13.0b3 REPL empties ~/.python_history · Issue #121245 · python/cpython · GitHub – but it was fixed in b4.

For me, the history is preserved with the final release (Fedora build):

$ python3.13
Python 3.13.0 (main, Oct  8 2024, 00:00:00) [GCC 13.3.1 20240913 (Red Hat 13.3.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> "Hi, discuss.python.org"
'Hi, discuss.python.org'
>>> 

$ python3.13
Python 3.13.0 (main, Oct  8 2024, 00:00:00) [GCC 13.3.1 20240913 (Red Hat 13.3.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> "Hi, discuss.python.org"
1 Like