Skip to content

Commit 0480052

Browse files
gh-109975: Copyedit What's New in Python 3.13 (#123150)
Co-authored-by: Adam Turner <[email protected]>
1 parent 833c58b commit 0480052

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
@@ -904,7 +904,7 @@ importlib
904904
io
905905
--
906906

907-
* The :class:`io.IOBase` finalizer now logs the ``close()`` method errors with
907+
* The :class:`io.IOBase` finalizer now logs errors raised by the ``close()`` method with
908908
:data:`sys.unraisablehook`. Previously, errors were ignored silently by default,
909909
and only logged in :ref:`Python Development Mode <devmode>` or on :ref:`Python
910910
built on debug mode <debug-build>`.
@@ -957,7 +957,7 @@ mimetypes
957957
mmap
958958
----
959959

960-
* The :class:`mmap.mmap` class now has an :meth:`~mmap.mmap.seekable` method
960+
* The :class:`mmap.mmap` class now has a :meth:`~mmap.mmap.seekable` method
961961
that can be used when a seekable file-like object is required.
962962
The :meth:`~mmap.mmap.seek` method now returns the new absolute position.
963963
(Contributed by Donghee Na and Sylvie Liberman in :gh:`111835`.)
@@ -1091,7 +1091,7 @@ pathlib
10911091
pdb
10921092
---
10931093

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

@@ -1187,7 +1187,7 @@ subprocess
11871187
more situations. Notably in the default case of ``close_fds=True`` on more
11881188
recent versions of platforms including Linux, FreeBSD, and Solaris where the
11891189
C library provides :c:func:`!posix_spawn_file_actions_addclosefrom_np`.
1190-
On Linux this should perform similar to our existing Linux :c:func:`!vfork`
1190+
On Linux this should perform similarly to the existing Linux :c:func:`!vfork`
11911191
based code. A private control knob :attr:`!subprocess._USE_POSIX_SPAWN` can
11921192
be set to ``False`` if you need to force :mod:`subprocess` not to ever use
11931193
:func:`os.posix_spawn`. Please report your reason and platform details in
@@ -1198,7 +1198,7 @@ subprocess
11981198
sys
11991199
---
12001200

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

@@ -1214,7 +1214,7 @@ time
12141214
----
12151215

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

@@ -1245,7 +1245,7 @@ tkinter
12451245

12461246
* Add new optional keyword-only parameter *return_ints* in
12471247
the :meth:`!Text.count` method.
1248-
Passing ``return_ints=True`` makes it always returning the single count
1248+
Passing ``return_ints=True`` makes it always return the single count
12491249
as an integer instead of a 1-tuple or ``None``.
12501250
(Contributed by Serhiy Storchaka in :gh:`97928`.)
12511251

@@ -1288,8 +1288,8 @@ traceback
12881288
types
12891289
-----
12901290

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

@@ -1715,7 +1715,7 @@ New Deprecations
17151715

17161716
(Contributed by Erlend E. Aasland in :gh:`107948` and :gh:`108278`.)
17171717

1718-
* :mod:`sys`: :func:`sys._enablelegacywindowsfsencoding` function.
1718+
* :mod:`sys`: The :func:`sys._enablelegacywindowsfsencoding` function is deprecated.
17191719
Replace it with the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment variable.
17201720
(Contributed by Inada Naoki in :gh:`73427`.)
17211721

@@ -1739,8 +1739,8 @@ New Deprecations
17391739
deprecated. Passing ``None`` to the 'fields' parameter
17401740
(``NT = NamedTuple("NT", None)`` or ``TD = TypedDict("TD", None)``) is also
17411741
deprecated. Both will be disallowed in Python 3.15. To create a NamedTuple
1742-
class with 0 fields, use ``class NT(NamedTuple): pass`` or
1743-
``NT = NamedTuple("NT", [])``. To create a TypedDict class with 0 fields, use
1742+
class with zero fields, use ``class NT(NamedTuple): pass`` or
1743+
``NT = NamedTuple("NT", [])``. To create a TypedDict class with zero fields, use
17441744
``class TD(TypedDict): pass`` or ``TD = TypedDict("TD", {})``.
17451745
(Contributed by Alex Waygood in :gh:`105566` and :gh:`105570`.)
17461746

@@ -1757,7 +1757,7 @@ New Deprecations
17571757

17581758
* :ref:`user-defined-funcs`:
17591759
Assignment to a function's :attr:`~function.__code__` attribute where the new code
1760-
object's type does not match the function's type, is deprecated. The
1760+
object's type does not match the function's type is deprecated. The
17611761
different types are: plain function, generator, async generator and
17621762
coroutine.
17631763
(Contributed by Irit Katriel in :gh:`81137`.)
@@ -1998,7 +1998,7 @@ New Features
19981998
(Contributed by Victor Stinner in :gh:`116936`.)
19991999

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

0 commit comments

Comments
 (0)