` and
- to warn on usage of deprecated classes and functions. A runtime deprecation
- warning may also be emitted when a decorated function or class is used at runtime.
- See :pep:`702`. (Contributed by Jelle Zijlstra in :gh:`104003`.)
+* :pep:`702`: The new :func:`warnings.deprecated` decorator provides a way to
+ communicate deprecations to a :term:`static type checker`
+ and to warn on usage of deprecated classes and functions.
+ A :exc:`DeprecationWarning` may also be emitted when
+ a decorated function or class is used at runtime.
+ (Contributed by Jelle Zijlstra in :gh:`104003`.)
xml
@@ -1350,17 +1462,19 @@ xml
(Contributed by Sebastian Pipping in :gh:`115623`.)
* Add the :meth:`!close` method for the iterator returned by
- :func:`~xml.etree.ElementTree.iterparse` for explicit cleaning up.
+ :func:`~xml.etree.ElementTree.iterparse` for explicit cleanup.
(Contributed by Serhiy Storchaka in :gh:`69893`.)
zipimport
---------
-* Gains support for ZIP64 format files. Everybody loves huge code right?
+* Add support for ZIP64_ format files.
+ Everybody loves huge data, right?
(Contributed by Tim Hatch in :gh:`94146`.)
-.. Add improved modules above alphabetically, not here at the end.
+ .. _ZIP64: https://en.wikipedia.org/wiki/Zip_(file_format)#ZIP64
+
Optimizations
=============
@@ -1509,10 +1623,6 @@ PEP 594: dead batteries (and other module removals)
configparser
------------
-* The :class:`configparser.ConfigParser` now accepts unnamed sections
- before named ones if configured to do so.
- (Contributed by Pedro Sousa Lacerda in :gh:`66449`.)
-
* Remove the undocumented :class:`!configparser.LegacyInterpolation` class,
deprecated in the docstring since Python 3.2,
and with a deprecation warning since Python 3.11.
@@ -1532,6 +1642,19 @@ locale
use ``locale.setlocale(locale.LC_ALL, "")`` instead.
(Contributed by Victor Stinner in :gh:`104783`.)
+opcode
+------
+
+* Move :attr:`!opcode.ENABLE_SPECIALIZATION` to :attr:`!_opcode.ENABLE_SPECIALIZATION`.
+ This field was added in 3.12, it was never documented,
+ and is not intended for external use.
+ (Contributed by Irit Katriel in :gh:`105481`.)
+
+* Removed :func:`!opcode.is_pseudo`, :attr:`!opcode.MIN_PSEUDO_OPCODE`,
+ and :attr:`!opcode.MAX_PSEUDO_OPCODE`, which were added in 3.12,
+ but were neither documented nor exposed through ``dis``,
+ and were not intended to be used externally.
+
pathlib
-------
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy