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

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.
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.