Python 3.10.0 is now available

This is the stable release of Python 3.10.0

Python 3.10.0 is the newest major release of the Python programming language, and it contains many new features and optimizations.

Major new features of the 3.10 series, compared to 3.9

Among the new major new features and changes so far:

  • PEP 623 – Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.

  • PEP 604 – Allow writing union types as X | Y

  • PEP 612 – Parameter Specification Variables

  • PEP 626 – Precise line numbers for debugging and other tools.

  • PEP 618 – Add Optional Length-Checking To zip.

  • bpo-12782: Parenthesized context managers are now officially allowed.

  • PEP 632 – Deprecate distutils module.

  • PEP 613 – Explicit Type Aliases

  • PEP 634 – Structural Pattern Matching: Specification

  • PEP 635 – Structural Pattern Matching: Motivation and Rationale

  • PEP 636 – Structural Pattern Matching: Tutorial

  • PEP 644 – Require OpenSSL 1.1.1 or newer

  • PEP 624 – Remove Py_UNICODE encoder APIs

  • PEP 597 – Add optional EncodingWarning

  • (Hey, fellow core developer, if a feature you find important is missing from this list, let Pablo know.)

bpo-38605: from __future__ import annotations (PEP 563) used to be on this list
in previous pre-releases but it has been postponed to Python 3.11 due to some compatibility concerns. You can read the Steering Council communication about it here to learn more.

More resources

And now for something completely different

For a Schwarzschild black hole (a black hole with no rotation or electromagnetic charge), given a free fall particle starting at the event horizon, the maximum propper time (which
happens when it falls without angular velocity) it will experience to fall into the singularity is π*M (in natural units), where M is the mass of the black hole. For Sagittarius A* (the black hole at the center of the milky way) this time is approximately 1 minute.

Schwarzschild black holes are also unique because they have a space-like singularity at their core, which means that the singularity doesn’t happen at a specific point in space but happens at a specific point in time (the future). This means once you are inside the event horizon you cannot point with your finger towards the direction the singularity is located because the singularity happens in your future: no matter where you move, you will “fall” into it.

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.

Python Software Foundation | Python Software Foundation Python Software Foundation | Python Software Foundation

#More resources

Online Documentation 3.10.0 Documentation
PEP 619 PEP 619 -- Python 3.10 Release Schedule | Python.org, 3.10 Release Schedule
Report bugs at https://bugs.python.org https://bugs.python.org/.
Help fund Python and its community Support the PSF with a Donation or by becoming a Supporting Member! | Python Software Foundation.

Your friendly release team,

Ned Deily @nad Profile - nad - Discussions on Python.org
Steve Dower @steve.dower Profile - steve.dower - Discussions on Python.org
Pablo Galindo Salgado @pablogsal Profile - pablogsal - Discussions on Python.org

13 Likes

Thank you to everyone involved in this release! I can’t believe I’m saying this, but I now consider the interesting (and often mind-bending) Physics factoids an integral part of each release. It’s a shame we don’t have an aggregated archive somewhere :slightly_smiling_face:

3 Likes

It’s aggregated in my brain :brain:!