@@ -183,7 +183,7 @@ Other language changes
183183 compatibility between versions of Python, ensure that an explicit ``encoding ``
184184 argument is always provided. The :ref: `opt-in encoding warning <io-encoding-warning >`
185185 can be used to identify code that may be affected by this change.
186- The special special ``encoding='locale' `` argument uses the current locale
186+ The special ``encoding='locale' `` argument uses the current locale
187187 encoding, and has been supported since Python 3.10.
188188
189189 To retain the previous behaviour, Python's UTF-8 mode may be disabled with
@@ -477,6 +477,15 @@ typing
477477 or ``TD = TypedDict("TD", {}) `` instead.
478478 (Contributed by Bénédikt Tran in :gh: `133823 `.)
479479
480+ * Code like ``class ExtraTypeVars(P1[S], Protocol[T, T2]): ... `` now raises
481+ a :exc: `TypeError `, because ``S `` is not listed in ``Protocol `` parameters.
482+ (Contributed by Nikita Sobolev in :gh: `137191 `.)
483+
484+ * Code like ``class B2(A[T2], Protocol[T1, T2]): ... `` now correctly handles
485+ type parameters order: it is ``(T1, T2) ``, not ``(T2, T1) ``
486+ as it was incorrectly infered in runtime before.
487+ (Contributed by Nikita Sobolev in :gh: `137191 `.)
488+
480489
481490wave
482491----
@@ -548,6 +557,11 @@ Deprecated C APIs
548557 signed integer type of the same size is now deprecated.
549558 (Contributed by Serhiy Storchaka in :gh: `132629 `.)
550559
560+ * Functions :c:func: `_Py_c_sum `, :c:func: `_Py_c_diff `, :c:func: `_Py_c_neg `,
561+ :c:func: `_Py_c_prod `, :c:func: `_Py_c_quot `, :c:func: `_Py_c_pow ` and
562+ :c:func: `_Py_c_abs ` are :term: `soft deprecated `.
563+ (Contributed by Sergey B Kirpichev in :gh: `128813 `.)
564+
551565.. Add C API deprecations above alphabetically, not here at the end.
552566
553567 Removed C APIs
0 commit comments