Python 3.16.0a2 Adds Encrypted Client Hello Support, Faster UUID Generation and Apple tvOS/watchOS/visionOS Build Support
Python 3.16.0a2, the second of seven planned alphas, adds ssl's Encrypted Client Hello support, C-accelerated uuid4/uuid7 generation, faster startup, new error-message suggestions and tvOS/watchOS/visionOS build support.
Overview
Python 3.16.0a2 is out. According to the Python.org release page, it carries a release date of Nov. 10, 2026 and is “the second of seven planned alpha releases.” The page describes it as “an early developer preview of Python 3.16” that is “not recommended for production use.” It follows 3.16.0a1, which The Machine Herald previously reported on October 19; at that stage, the draft What’s new in Python 3.16 document’s “Summary – Release highlights” section was empty. That section is now populated, and the document names Savannah Ostrowski as editor.
What’s New
The release page highlights several changes “compared with 3.15.” One is Encrypted Client Hello support: the ssl module “adds support for ECH when built with OpenSSL 4.0 or later.” The What’s new document adds that clients can supply an ECHConfigList discovered through DNS — for example via a third-party library such as dnspython querying HTTPS or SVCB records — as the ech_config argument of wrap_socket() and wrap_bio(), or with set_ech_config(). Servers can use load_ech_keys() to load ECH private keys and configurations from PEM files. The feature is credited to Peter Bierma and Iain R. Learmonth.
The release page also highlights faster UUID generation, saying uuid4() and uuid7() “now have C implementations, making generation about 15-30x faster than the pure Python implementations in microbenchmarks.” The What’s new document gives more precise per-operation figures from its own microbenchmarks: uuid.uuid4() generation at 15.01x, uuid.uuid7() generation at 29.64x, building a uuid.UUID from a string at 6.76x, from bytes at 5.16x, and str() conversion of a UUID at 6.66x. That work is credited to Yury Selivanov.
A third highlight is faster interpreter startup. The release page says “Python starts faster, and several common operations have been optimized, including garbage collection and the construction of built-in objects.” The What’s new document attributes this to Pablo Galindo Salgado, Cody Maloney, and Pieter Eendebak, and separately notes that iteration over asynchronous generators is faster because values yielded to async for no longer create and discard a StopIteration exception at every nesting level, measuring the async_generators pyperformance benchmark as about 30% faster, credited to Shamil Abdulaev.
The release page also flags improved error messages, detailed in the What’s new document as five separate changes: SyntaxError messages now suggest Python alternatives to keywords from other languages (for example, switch x: suggests match, and function f(): suggests def, credited to Zang Langyan); improved SyntaxError wording for && and || operators, suggesting and/& and or/|; closest-match suggestions when an unknown name is imported from __future__; TypeError messages for instance methods called with too many positional arguments now suggesting a missing self parameter; and added context notes to a TypeError raised while hashing a tuple, identifying which item’s hash failed.
Finally, the release page highlights build support for more Apple platforms: “CPython can now be built for tvOS, watchOS, and visionOS.” The What’s new document adds that these platforms “are not currently included in the supported platform tiers defined by PEP 11,” and credits the work, along with a separate change letting iOS builds be configured as free-threaded or debug builds, to Russell Keith-Magee.
The release page repeats a highlight already covered in the 3.16.0a1 Briefing: more expressive regular expressions, including nested character sets, set operations such as intersection and difference, and matching by Unicode properties.
What We Don’t Know
The What’s new document remains in draft form and states it “will be updated substantially as Python 3.16 moves towards release.” Its “New modules” section currently reads “None yet.” The release page says features “can be added until beta 1 on May 4, 2027, and may be modified or removed until the first release candidate on July 27, 2027,” with a final release “planned for October 5, 2027.” The next alpha, Python 3.16.0a3, is scheduled for December 15, 2026, per the full schedule in PEP 826. Neither source gives end-to-end application-level benchmarks for the alpha as a whole; the published figures are per-operation microbenchmarks.