|
| 1 | +--- |
| 2 | +title: Python 3.16.0 alpha 2 is now available |
| 3 | +publishDate: '2026-11-10' |
| 4 | +author: Savannah Ostrowski |
| 5 | +description: The second developer preview of Python 3.16 is ready for testing. |
| 6 | +tags: |
| 7 | + - releases |
| 8 | +published: true |
| 9 | +--- |
| 10 | + |
| 11 | +**This is an early developer preview of Python 3.16** |
| 12 | + |
| 13 | +[python.org/downloads/release/python-3160a2/](https://www.python.org/downloads/release/python-3160a2/) |
| 14 | + |
| 15 | +## What’s new in Python 3.16? |
| 16 | + |
| 17 | +There’s plenty still to come in Python 3.16, but its second alpha is ready to try! Python 3.16.0a2 is the second of seven planned alpha releases. |
| 18 | + |
| 19 | +During the alpha phase, features may be added up until the start of the beta phase (May 4, 2027) and, if necessary, may be modified or deleted up until the release candidate phase (July 27, 2027). The final release is planned for October 5, 2027. Please keep in mind that this is a preview release and its use is not recommended for production environments. |
| 20 | + |
| 21 | +Here are a few highlights from Python 3.16 so far, compared with 3.15. |
| 22 | + |
| 23 | +* [More expressive regular expressions](https://docs.python.org/3.16/whatsnew/3.16.html#whatsnew316-re-set-operations-and-unicode-properties). The `re` module now supports nested character sets, set operations such as intersection and difference, and Unicode property escapes such as `\p{Lu}` for uppercase letters. |
| 24 | +* [Faster startup](https://docs.python.org/3.16/whatsnew/3.16.html#whatsnew316-interpreter-startup). Interpreter startup is faster, with improvements to garbage collection and the construction of common built-in objects. |
| 25 | +* [Faster UUID generation](https://docs.python.org/3.16/whatsnew/3.16.html#whatsnew316-uuid-optimizations). `uuid4()` and `uuid7()` now have C implementations. Microbenchmarks measured generation about 15 and 30 times as fast as the pure Python implementations, respectively. |
| 26 | +* [More helpful error messages](https://docs.python.org/3.16/whatsnew/3.16.html#whatsnew316-improved-error-messages). Syntax errors can suggest Python equivalents for keywords and operators from other languages, such as `def` for `function` and `and` for `&&`. Some method-call errors also suggest checking for a missing `self` parameter. |
| 27 | +* [Encrypted Client Hello](https://docs.python.org/3.16/whatsnew/3.16.html#whatsnew316-ssl-ech). The `ssl` module adds support for ECH when built with OpenSSL 4.0 or later. |
| 28 | +* [Build support for more Apple platforms](https://docs.python.org/3.16/whatsnew/3.16.html#whatsnew316-apple-platforms). CPython can now be built for tvOS, watchOS, and visionOS. These platforms are not yet part of the supported platform tiers in PEP 11. |
| 29 | + |
| 30 | +See [What’s new in Python 3.16](https://docs.python.org/3.16/whatsnew/3.16.html) for more changes. |
| 31 | + |
| 32 | +(Hey, **fellow core team member,** if there’s a feature you’d like highlighted in a future announcement, [let Savannah know](mailto:savannah@python.org).) |
| 33 | + |
| 34 | +If you maintain a library or application, please try it with this alpha and let us know how it goes. Please report Python bugs on the [CPython issue tracker](https://github.com/python/cpython/issues). |
| 35 | + |
| 36 | +The next alpha, Python 3.16.0a3, is scheduled for December 15, 2026. The full schedule is in [PEP 826](https://peps.python.org/pep-0826/). |
| 37 | + |
| 38 | +## More resources |
| 39 | + |
| 40 | +* [Python 3.16 documentation](https://docs.python.org/3.16/) |
| 41 | +* [Changelog](https://docs.python.org/3.16/whatsnew/changelog.html) |
| 42 | +* [Support Python through the Python Software Foundation](https://www.python.org/psf/donations/) |
| 43 | + |
| 44 | +## And now for something completely different |
| 45 | + |
| 46 | +Next up in the Python 3.16 Film Festival is [*The Martian* (2015)](https://www.20thcenturystudios.com/movies/the-martian). Stranded on Mars, Mark Watney has to keep himself alive with what he has on hand. The plan to bring him home takes shape much like CPython does, with people around the world bringing different skills to a shared effort. |
| 47 | + |
| 48 | +> So we do this together or not at all. |
| 49 | +> |
| 50 | +> — Commander Melissa Lewis, *The Martian* (2015) |
| 51 | +
|
| 52 | +## Enjoy the new release |
| 53 | + |
| 54 | +Thank you to everyone who has contributed code, reviewed changes, written documentation, tested builds, and reported bugs. All of that work helps make Python and its releases possible. Please consider supporting Python by volunteering your time or encouraging your organisation to support the [Python Software Foundation](https://www.python.org/psf-landing/). |
| 55 | + |
| 56 | +Happy testing! |
| 57 | + |
| 58 | +Regards from beautiful Washington state, |
| 59 | + |
| 60 | +Your release team, |
| 61 | +Savannah Ostrowski |
| 62 | +Ned Deily |
| 63 | +Steve Dower |
| 64 | +Julien Palard |
0 commit comments