Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 443d9b3

Browse files
authored
gh-106976:alphabetise bullets by module name task1 (#106982)
1 parent d55b4da commit 443d9b3

File tree

1 file changed

+28
-25
lines changed

1 file changed

+28
-25
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -150,30 +150,7 @@ Optimizations
150150
Deprecated
151151
==========
152152

153-
* :mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
154-
methods of the :class:`wave.Wave_read` and :class:`wave.Wave_write` classes.
155-
They will be removed in Python 3.15.
156-
(Contributed by Victor Stinner in :gh:`105096`.)
157-
* :mod:`typing`: Creating a :class:`typing.NamedTuple` class using keyword arguments to denote
158-
the fields (``NT = NamedTuple("NT", x=int, y=int)``) is deprecated, and will
159-
be disallowed in Python 3.15. Use the class-based syntax or the functional
160-
syntax instead. (Contributed by Alex Waygood in :gh:`105566`.)
161-
* :mod:`typing`: When using the functional syntax to create a :class:`typing.NamedTuple`
162-
class or a :class:`typing.TypedDict` class, failing to pass a value to the
163-
'fields' parameter (``NT = NamedTuple("NT")`` or ``TD = TypedDict("TD")``) is
164-
deprecated. Passing ``None`` to the 'fields' parameter
165-
(``NT = NamedTuple("NT", None)`` or ``TD = TypedDict("TD", None)``) is also
166-
deprecated. Both will be disallowed in Python 3.15. To create a NamedTuple
167-
class with 0 fields, use ``class NT(NamedTuple): pass`` or
168-
``NT = NamedTuple("NT", [])``. To create a TypedDict class with 0 fields, use
169-
``class TD(TypedDict): pass`` or ``TD = TypedDict("TD", {})``.
170-
(Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
171-
* :func:`typing.no_type_check_decorator` is deprecated, and scheduled for
172-
removal in Python 3.15. After eight years in the :mod:`typing` module, it
173-
has yet to be supported by any major type checkers.
174-
(Contributed by Alex Waygood in :gh:`106309`.)
175-
176-
* :mod:`array`'s ``'u'`` format code, deprecated in docs since Python 3.3,
153+
* :mod:`array`: :mod:`array`'s ``'u'`` format code, deprecated in docs since Python 3.3,
177154
emits :exc:`DeprecationWarning` since 3.13
178155
and will be removed in Python 3.16.
179156
Use the ``'w'`` format code instead.
@@ -184,13 +161,39 @@ Deprecated
184161
Replace ``ctypes.ARRAY(item_type, size)`` with ``item_type * size``.
185162
(Contributed by Victor Stinner in :gh:`105733`.)
186163

187-
* The :mod:`getopt` and :mod:`optparse` modules are now
164+
* :mod:`getopt` and :mod:`optparse` modules: They are now
188165
:term:`soft deprecated`: the :mod:`argparse` should be used for new projects.
189166
Previously, the :mod:`optparse` module was already deprecated, its removal
190167
was not scheduled, and no warnings was emitted: so there is no change in
191168
practice.
192169
(Contributed by Victor Stinner in :gh:`106535`.)
193170

171+
* :mod:`typing`: Creating a :class:`typing.NamedTuple` class using keyword arguments to denote
172+
the fields (``NT = NamedTuple("NT", x=int, y=int)``) is deprecated, and will
173+
be disallowed in Python 3.15. Use the class-based syntax or the functional
174+
syntax instead. (Contributed by Alex Waygood in :gh:`105566`.)
175+
176+
* When using the functional syntax to create a :class:`typing.NamedTuple`
177+
class or a :class:`typing.TypedDict` class, failing to pass a value to the
178+
'fields' parameter (``NT = NamedTuple("NT")`` or ``TD = TypedDict("TD")``) is
179+
deprecated. Passing ``None`` to the 'fields' parameter
180+
(``NT = NamedTuple("NT", None)`` or ``TD = TypedDict("TD", None)``) is also
181+
deprecated. Both will be disallowed in Python 3.15. To create a NamedTuple
182+
class with 0 fields, use ``class NT(NamedTuple): pass`` or
183+
``NT = NamedTuple("NT", [])``. To create a TypedDict class with 0 fields, use
184+
``class TD(TypedDict): pass`` or ``TD = TypedDict("TD", {})``.
185+
(Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
186+
187+
* :func:`typing.no_type_check_decorator` is deprecated, and scheduled for
188+
removal in Python 3.15. After eight years in the :mod:`typing` module, it
189+
has yet to be supported by any major type checkers.
190+
(Contributed by Alex Waygood in :gh:`106309`.)
191+
192+
* :mod:`wave`: Deprecate the ``getmark()``, ``setmark()`` and ``getmarkers()``
193+
methods of the :class:`wave.Wave_read` and :class:`wave.Wave_write` classes.
194+
They will be removed in Python 3.15.
195+
(Contributed by Victor Stinner in :gh:`105096`.)
196+
194197
Pending Removal in Python 3.14
195198
------------------------------
196199

0 commit comments

Comments
 (0)