Skip to content

Commit 595fb38

Browse files
miss-islingtonJelleZijlstraAA-Turner
authored
[3.13] gh-109975: Copyedit What's New in Python 3.13 (GH-123150) (#123164)
gh-109975: Copyedit What's New in Python 3.13 (GH-123150) (cherry picked from commit 0480052) Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent 98c7196 commit 595fb38

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Doc/whatsnew/3.13.rst

+16-16
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ by an order of magnitude or more for larger heaps.
499499
Other Language Changes
500500
======================
501501

502-
* The compiler now strips common common leading whitespace
502+
* The compiler now strips common leading whitespace
503503
from every line in a docstring.
504504
This reduces the size of the :term:`bytecode cache <bytecode>`
505505
(such as ``.pyc`` files), with reductions in file size of around 5%,
@@ -632,7 +632,7 @@ array
632632
It can be used instead of ``'u'`` type code, which is deprecated.
633633
(Contributed by Inada Naoki in :gh:`80480`.)
634634

635-
* Add ``clear()`` method in order to implement ``MutableSequence``.
635+
* Add ``clear()`` method in order to implement :class:`~collections.abc.MutableSequence`.
636636
(Contributed by Mike Zimin in :gh:`114894`.)
637637

638638
ast
@@ -892,7 +892,7 @@ importlib
892892
io
893893
--
894894

895-
* The :class:`io.IOBase` finalizer now logs the ``close()`` method errors with
895+
* The :class:`io.IOBase` finalizer now logs errors raised by the ``close()`` method with
896896
:data:`sys.unraisablehook`. Previously, errors were ignored silently by default,
897897
and only logged in :ref:`Python Development Mode <devmode>` or on :ref:`Python
898898
built on debug mode <debug-build>`.
@@ -945,7 +945,7 @@ mimetypes
945945
mmap
946946
----
947947

948-
* The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.seekable` method
948+
* The :class:`mmap.mmap` class now has a :meth:`~mmap.mmap.seekable` method
949949
that can be used when a seekable file-like object is required.
950950
The :meth:`~mmap.mmap.seek` method now returns the new absolute position.
951951
(Contributed by Donghee Na and Sylvie Liberman in :gh:`111835`.)
@@ -1079,7 +1079,7 @@ pathlib
10791079
pdb
10801080
---
10811081

1082-
* Add ability to move between chained exceptions during post mortem debugging in :func:`~pdb.pm` using
1082+
* Add ability to move between chained exceptions during post-mortem debugging in :func:`~pdb.pm` using
10831083
the new ``exceptions [exc_number]`` command for Pdb. (Contributed by Matthias
10841084
Bussonnier in :gh:`106676`.)
10851085

@@ -1175,7 +1175,7 @@ subprocess
11751175
more situations. Notably in the default case of ``close_fds=True`` on more
11761176
recent versions of platforms including Linux, FreeBSD, and Solaris where the
11771177
C library provides :c:func:`!posix_spawn_file_actions_addclosefrom_np`.
1178-
On Linux this should perform similar to our existing Linux :c:func:`!vfork`
1178+
On Linux this should perform similarly to the existing Linux :c:func:`!vfork`
11791179
based code. A private control knob :attr:`!subprocess._USE_POSIX_SPAWN` can
11801180
be set to ``False`` if you need to force :mod:`subprocess` not to ever use
11811181
:func:`os.posix_spawn`. Please report your reason and platform details in
@@ -1186,7 +1186,7 @@ subprocess
11861186
sys
11871187
---
11881188

1189-
* Add the :func:`sys._is_interned` function to test if the string was interned.
1189+
* Add the :func:`sys._is_interned` function to test if a string was interned.
11901190
This function is not guaranteed to exist in all implementations of Python.
11911191
(Contributed by Serhiy Storchaka in :gh:`78573`.)
11921192

@@ -1202,7 +1202,7 @@ time
12021202
----
12031203

12041204
* On Windows, :func:`time.monotonic()` now uses the
1205-
``QueryPerformanceCounter()`` clock to have a resolution better than 1 us,
1205+
``QueryPerformanceCounter()`` clock to have a resolution better than 1 μs,
12061206
instead of the ``GetTickCount64()`` clock which has a resolution of 15.6 ms.
12071207
(Contributed by Victor Stinner in :gh:`88494`.)
12081208

@@ -1233,7 +1233,7 @@ tkinter
12331233

12341234
* Add new optional keyword-only parameter *return_ints* in
12351235
the :meth:`!Text.count` method.
1236-
Passing ``return_ints=True`` makes it always returning the single count
1236+
Passing ``return_ints=True`` makes it always return the single count
12371237
as an integer instead of a 1-tuple or ``None``.
12381238
(Contributed by Serhiy Storchaka in :gh:`97928`.)
12391239

@@ -1276,8 +1276,8 @@ traceback
12761276
types
12771277
-----
12781278

1279-
* :class:`~types.SimpleNamespace` constructor now allows specifying initial
1280-
values of attributes as a positional argument which must be a mapping or
1279+
* The :class:`~types.SimpleNamespace` constructor now allows specifying initial
1280+
values of attributes as a positional argument, which must be a mapping or
12811281
an iterable of key-value pairs.
12821282
(Contributed by Serhiy Storchaka in :gh:`108191`.)
12831283

@@ -1703,7 +1703,7 @@ New Deprecations
17031703

17041704
(Contributed by Erlend E. Aasland in :gh:`107948` and :gh:`108278`.)
17051705

1706-
* :mod:`sys`: :func:`sys._enablelegacywindowsfsencoding` function.
1706+
* :mod:`sys`: The :func:`sys._enablelegacywindowsfsencoding` function is deprecated.
17071707
Replace it with the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment variable.
17081708
(Contributed by Inada Naoki in :gh:`73427`.)
17091709

@@ -1727,8 +1727,8 @@ New Deprecations
17271727
deprecated. Passing ``None`` to the 'fields' parameter
17281728
(``NT = NamedTuple("NT", None)`` or ``TD = TypedDict("TD", None)``) is also
17291729
deprecated. Both will be disallowed in Python 3.15. To create a NamedTuple
1730-
class with 0 fields, use ``class NT(NamedTuple): pass`` or
1731-
``NT = NamedTuple("NT", [])``. To create a TypedDict class with 0 fields, use
1730+
class with zero fields, use ``class NT(NamedTuple): pass`` or
1731+
``NT = NamedTuple("NT", [])``. To create a TypedDict class with zero fields, use
17321732
``class TD(TypedDict): pass`` or ``TD = TypedDict("TD", {})``.
17331733
(Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
17341734

@@ -1745,7 +1745,7 @@ New Deprecations
17451745

17461746
* :ref:`user-defined-funcs`:
17471747
Assignment to a function's :attr:`~function.__code__` attribute where the new code
1748-
object's type does not match the function's type, is deprecated. The
1748+
object's type does not match the function's type is deprecated. The
17491749
different types are: plain function, generator, async generator and
17501750
coroutine.
17511751
(Contributed by Irit Katriel in :gh:`81137`.)
@@ -1986,7 +1986,7 @@ New Features
19861986
(Contributed by Victor Stinner in :gh:`116936`.)
19871987

19881988
* Add two new functions to the C-API, :c:func:`PyRefTracer_SetTracer` and
1989-
:c:func:`PyRefTracer_GetTracer`, that allows to track object creation and
1989+
:c:func:`PyRefTracer_GetTracer`, that allow to track object creation and
19901990
destruction the same way the :mod:`tracemalloc` module does. (Contributed
19911991
by Pablo Galindo in :gh:`93502`.)
19921992

0 commit comments

Comments
 (0)