Issue ·
This Week in Python
This week brought three PEP changes, two of them new proposals, led by the 2027 Steering Council election PEP. Python 3.16.0a2, a pre-release preview, also arrived with faster startup and UUID generation.
New proposals 2
PEP 852 Draft 3.16
Asynchronous functions in the C API
This PEP adds a set of C API functions so C extension code can create, await, and complete coroutines directly, without a Python-level wrapper. It is a draft, so the API is not settled and cannot be used yet.
PyObject *asyncobj = PyAsync_New();
if (asyncobj == NULL) {
return NULL;
}
PyAsync_AddAwait(asyncobj, coro, return_result, NULL);
PEP 8108 Active Governance
2027 Term Steering Council election
This PEP sets the schedule and rules for the 2026 Python Steering Council election, which chooses the council for the 2027 term covering Python 3.16. It is an administrative document, so it does not change how you write Python code.
Updates 1
PEP 845 Draft 3.16
Leading-Dot Value Patterns for match statements
You can match a local or global variable's value directly in a match case by prefixing its name with a dot, so you no longer need an if guard for an equality check. This is proposed, not yet approved.
author = "William Shakespeare"
match book:
case {"author": .author}:
...
Python releases 1
Pre-release
Python 3.16.0a2
Previews Python 3.16 with more expressive regular expressions, faster startup, and faster UUID generation.
- re module gains nested character sets, set operations, and Unicode property matching
- uuid4() and uuid7() now have C implementations, about 15-30x faster
- ssl adds Encrypted Client Hello when built with OpenSSL 4.0 or later
- CPython can now be built for tvOS, watchOS, and visionOS