https://github.com/python/cpython/commit/61e6f0992f50a32509e94b050decce70ada8885f commit: 61e6f0992f50a32509e94b050decce70ada8885f branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: hauntsaninja <[email protected]> date: 2024-11-10T00:57:54Z summary:
[3.12] Postpone `module.__loader__` deprecation to Python 3.16 (GH-126482) (#126637) Postpone `module.__loader__` deprecation to Python 3.16 (GH-126482) (cherry picked from commit 450db61a78989c5a1f1106be01e071798c783cf9) Co-authored-by: Hugo van Kemenade <[email protected]> files: M Doc/deprecations/pending-removal-in-3.14.rst M Doc/deprecations/pending-removal-in-3.16.rst M Doc/reference/datamodel.rst diff --git a/Doc/deprecations/pending-removal-in-3.14.rst b/Doc/deprecations/pending-removal-in-3.14.rst index 0e6a100574c3be..b506b0f02fbf53 100644 --- a/Doc/deprecations/pending-removal-in-3.14.rst +++ b/Doc/deprecations/pending-removal-in-3.14.rst @@ -1,13 +1,6 @@ Pending Removal in Python 3.14 ------------------------------ -* The import system: - - * Setting :attr:`~module.__loader__` on a module while - failing to set :attr:`__spec__.loader <importlib.machinery.ModuleSpec.loader>` - is deprecated. In Python 3.14, :attr:`!__loader__` will cease to be set or - taken into consideration by the import system or the standard library. - * :mod:`argparse`: The *type*, *choices*, and *metavar* parameters of :class:`!argparse.BooleanOptionalAction` are deprecated and will be removed in 3.14. diff --git a/Doc/deprecations/pending-removal-in-3.16.rst b/Doc/deprecations/pending-removal-in-3.16.rst index 82d40091576815..f59a40373e48a8 100644 --- a/Doc/deprecations/pending-removal-in-3.16.rst +++ b/Doc/deprecations/pending-removal-in-3.16.rst @@ -1,6 +1,13 @@ Pending Removal in Python 3.16 ------------------------------ +* The import system: + + * Setting :attr:`~module.__loader__` on a module while + failing to set :attr:`__spec__.loader <importlib.machinery.ModuleSpec.loader>` + is deprecated. In Python 3.16, :attr:`!__loader__` will cease to be set or + taken into consideration by the import system or the standard library. + * :mod:`array`: :class:`array.array` ``'u'`` type (:c:type:`wchar_t`): use the ``'w'`` type instead (``Py_UCS4``). diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index bdb83790653661..e19a365fa4bd09 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1007,9 +1007,9 @@ this approach. using the :class:`types.ModuleType` constructor. Previously the attribute was optional. - .. deprecated-removed:: 3.12 3.14 + .. deprecated-removed:: 3.12 3.16 Setting :attr:`!__loader__` on a module while failing to set - :attr:`!__spec__.loader` is deprecated. In Python 3.14, + :attr:`!__spec__.loader` is deprecated. In Python 3.16, :attr:`!__loader__` will cease to be set or taken into consideration by the import system or the standard library. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
