]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106976:alphabetise bullets by module name task1 (#106982)
authorlittlebutt's workshop <luogan199686@gmail.com>
Sat, 22 Jul 2023 08:34:48 +0000 (08:34 +0000)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 08:34:48 +0000 (10:34 +0200)
Doc/whatsnew/3.13.rst

index 0203e3d18738d4ef16c1bb3261acf4f352e5e058..a778e12aba1bce95439142b8767c6c8fa2e9b242 100644 (file)
@@ -150,30 +150,7 @@ Optimizations
 Deprecated
 ==========
 
-* :mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
-  methods of the :class:`wave.Wave_read` and :class:`wave.Wave_write` classes.
-  They will be removed in Python 3.15.
-  (Contributed by Victor Stinner in :gh:`105096`.)
-* :mod:`typing`: Creating a :class:`typing.NamedTuple` class using keyword arguments to denote
-  the fields (``NT = NamedTuple("NT", x=int, y=int)``) is deprecated, and will
-  be disallowed in Python 3.15. Use the class-based syntax or the functional
-  syntax instead. (Contributed by Alex Waygood in :gh:`105566`.)
-* :mod:`typing`: When using the functional syntax to create a :class:`typing.NamedTuple`
-  class or a :class:`typing.TypedDict` class, failing to pass a value to the
-  'fields' parameter (``NT = NamedTuple("NT")`` or ``TD = TypedDict("TD")``) is
-  deprecated. Passing ``None`` to the 'fields' parameter
-  (``NT = NamedTuple("NT", None)`` or ``TD = TypedDict("TD", None)``) is also
-  deprecated. Both will be disallowed in Python 3.15. To create a NamedTuple
-  class with 0 fields, use ``class NT(NamedTuple): pass`` or
-  ``NT = NamedTuple("NT", [])``. To create a TypedDict class with 0 fields, use
-  ``class TD(TypedDict): pass`` or ``TD = TypedDict("TD", {})``.
-  (Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
-* :func:`typing.no_type_check_decorator` is deprecated, and scheduled for
-  removal in Python 3.15. After eight years in the :mod:`typing` module, it
-  has yet to be supported by any major type checkers.
-  (Contributed by Alex Waygood in :gh:`106309`.)
-
-* :mod:`array`'s ``'u'`` format code, deprecated in docs since Python 3.3,
+* :mod:`array`: :mod:`array`'s ``'u'`` format code, deprecated in docs since Python 3.3,
   emits :exc:`DeprecationWarning` since 3.13
   and will be removed in Python 3.16.
   Use the ``'w'`` format code instead.
@@ -184,13 +161,39 @@ Deprecated
   Replace ``ctypes.ARRAY(item_type, size)`` with ``item_type * size``.
   (Contributed by Victor Stinner in :gh:`105733`.)
 
-* The :mod:`getopt` and :mod:`optparse` modules are now
+* :mod:`getopt` and :mod:`optparse` modules: They are now
   :term:`soft deprecated`: the :mod:`argparse` should be used for new projects.
   Previously, the :mod:`optparse` module was already deprecated, its removal
   was not scheduled, and no warnings was emitted: so there is no change in
   practice.
   (Contributed by Victor Stinner in :gh:`106535`.)
 
+* :mod:`typing`: Creating a :class:`typing.NamedTuple` class using keyword arguments to denote
+  the fields (``NT = NamedTuple("NT", x=int, y=int)``) is deprecated, and will
+  be disallowed in Python 3.15. Use the class-based syntax or the functional
+  syntax instead. (Contributed by Alex Waygood in :gh:`105566`.)
+
+  * When using the functional syntax to create a :class:`typing.NamedTuple`
+    class or a :class:`typing.TypedDict` class, failing to pass a value to the
+    'fields' parameter (``NT = NamedTuple("NT")`` or ``TD = TypedDict("TD")``) is
+    deprecated. Passing ``None`` to the 'fields' parameter
+    (``NT = NamedTuple("NT", None)`` or ``TD = TypedDict("TD", None)``) is also
+    deprecated. Both will be disallowed in Python 3.15. To create a NamedTuple
+    class with 0 fields, use ``class NT(NamedTuple): pass`` or
+    ``NT = NamedTuple("NT", [])``. To create a TypedDict class with 0 fields, use
+    ``class TD(TypedDict): pass`` or ``TD = TypedDict("TD", {})``.
+    (Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
+
+  * :func:`typing.no_type_check_decorator` is deprecated, and scheduled for
+    removal in Python 3.15. After eight years in the :mod:`typing` module, it
+    has yet to be supported by any major type checkers.
+    (Contributed by Alex Waygood in :gh:`106309`.)
+
+* :mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
+  methods of the :class:`wave.Wave_read` and :class:`wave.Wave_write` classes.
+  They will be removed in Python 3.15.
+  (Contributed by Victor Stinner in :gh:`105096`.)
+
 Pending Removal in Python 3.14
 ------------------------------