@@ -183,7 +183,7 @@ Other language changes
183
183
compatibility between versions of Python, ensure that an explicit ``encoding ``
184
184
argument is always provided. The :ref: `opt-in encoding warning <io-encoding-warning >`
185
185
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
187
187
encoding, and has been supported since Python 3.10.
188
188
189
189
To retain the previous behaviour, Python's UTF-8 mode may be disabled with
@@ -477,6 +477,15 @@ typing
477
477
or ``TD = TypedDict("TD", {}) `` instead.
478
478
(Contributed by Bénédikt Tran in :gh: `133823 `.)
479
479
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
+
480
489
481
490
wave
482
491
----
@@ -548,6 +557,11 @@ Deprecated C APIs
548
557
signed integer type of the same size is now deprecated.
549
558
(Contributed by Serhiy Storchaka in :gh: `132629 `.)
550
559
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
+
551
565
.. Add C API deprecations above alphabetically, not here at the end.
552
566
553
567
Removed C APIs
0 commit comments