* The layout of :ref:`bit fields <ctypes-bit-fields-in-structures-unions>`
in :class:`~ctypes.Structure` and :class:`~ctypes.Union`
- now matches platform defaults (GCC/Clang or MVSC) more closely.
+ now matches platform defaults (GCC/Clang or MSVC) more closely.
In particular, fields no longer overlap.
(Contributed by Matthias Görgens in :gh:`97702`.)
(Contributed by Yorik Hansen in :gh:`123430`.)
+imaplib
+-------
+
+* Add :meth:`IMAP4.idle() <imaplib.IMAP4.idle>`, implementing the IMAP4
+ ``IDLE`` command as defined in :rfc:`2177`.
+ (Contributed by Forest in :gh:`55454`.)
+
+
inspect
-------
:term:`package` or not.
(Contributed by Zhikang Yan in :gh:`125634`.)
-imaplib
--------
-
-* Add :meth:`IMAP4.idle() <imaplib.IMAP4.idle>`, implementing the IMAP4
- ``IDLE`` command as defined in :rfc:`2177`.
- (Contributed by Forest in :gh:`55454`.)
-
io
--
:func:`~os.stat` results. Path objects generated by
:meth:`~pathlib.Path.iterdir` are initialized with file type information
gleaned from scanning the parent directory.
-
(Contributed by Barney Gale in :gh:`125413`.)
--------
* Add :func:`platform.invalidate_caches` to invalidate the cached results.
-
(Contributed by Bénédikt Tran in :gh:`122549`.)
* Added :func:`ZipInfo._for_archive <zipfile.ZipInfo._for_archive>`
to resolve suitable defaults for a :class:`~zipfile.ZipInfo` object
as used by :func:`ZipFile.writestr <zipfile.ZipFile.writestr>`.
-
(Contributed by Bénédikt Tran in :gh:`123424`.)
* :meth:`zipfile.ZipFile.writestr` now respect ``SOURCE_DATE_EPOCH`` that
distributions can set centrally and have build tools consume this in order
to produce reproducible output.
-
(Contributed by Jiahao Li in :gh:`91279`.)
.. Add improved modules above alphabetically, not here at the end.
* :attr:`!ast.Constant.s`
Use :attr:`!ast.Constant.value` instead.
-
(Contributed by Alex Waygood in :gh:`119562`.)
asyncio
:func:`~urllib.request.urlretrieve`. Customizations to the opener
classes can be replaced by passing customized handlers to
:func:`~urllib.request.build_opener`.
-
(Contributed by Barney Gale in :gh:`84850`.)
Others
.. _pythoncapi-compat project: https://github.com/python/pythoncapi-compat/
+.. _whatsnew314-c-api-deprecated:
+
Deprecated
----------
The `pythoncapi-compat project`_ can be used to get these new public
functions on Python 3.13 and older.
-
(Contributed by Victor Stinner in :gh:`128863`.)
-
.. include:: ../deprecations/c-api-pending-removal-in-3.15.rst
.. include:: ../deprecations/c-api-pending-removal-in-3.18.rst
.. include:: ../deprecations/c-api-pending-removal-in-future.rst
+.. _whatsnew314-c-api-removed:
+
Removed
-------