AITMONDO

Python 3.16.0 alpha 2 expands regular expressions and speeds up UUID generation

A blank card is lit by a desk lamp. Behind it, a laptop screen shows a curve.
A desk imagined as a place to test software under development. Illustration: AITMONDO (AI-generated and drawn in SVG). AITMONDO original illustration.

The Python release team published Python 3.16.0a2, a developer preview of version 3.16.0, on November 10. It is the second of seven planned alpha releases. The team listed expanded regular expression support and faster UUID generation among the main changes from Python 3.15. It advised against using the preview in production.

Alpha 2 was released on November 10. The next alpha is scheduled for December 15, and the final release is planned for October 5, 2027.
AITMONDO graphic based on primary sources.

Regular expressions support character set intersection and difference

The re module now supports nested character sets and operations such as set intersection and difference. It can also match Unicode character properties such as uppercase letters. The team said the new C implementations of uuid4() and uuid7() generated UUIDs about 15 to 30 times faster than the previous Python implementations in microbenchmarks.

Next alpha planned for December 15

The preview also changes startup and garbage collection. CPython can now be built for Apple’s tvOS, watchOS and visionOS, which have yet to be assigned support tiers under PEP 11. The next alpha is scheduled for December 15. The first beta and feature freeze are planned for May 4, 2027, and the final release for October 5, 2027.

Primary sources