@@ -499,7 +499,7 @@ by an order of magnitude or more for larger heaps.
499
499
Other Language Changes
500
500
======================
501
501
502
- * The compiler now strips common common leading whitespace
502
+ * The compiler now strips common leading whitespace
503
503
from every line in a docstring.
504
504
This reduces the size of the :term: `bytecode cache <bytecode> `
505
505
(such as ``.pyc `` files), with reductions in file size of around 5%,
@@ -632,7 +632,7 @@ array
632
632
It can be used instead of ``'u' `` type code, which is deprecated.
633
633
(Contributed by Inada Naoki in :gh: `80480 `.)
634
634
635
- * Add ``clear() `` method in order to implement `` MutableSequence ` `.
635
+ * Add ``clear() `` method in order to implement :class: ` ~collections.abc. MutableSequence `.
636
636
(Contributed by Mike Zimin in :gh: `114894 `.)
637
637
638
638
ast
@@ -904,7 +904,7 @@ importlib
904
904
io
905
905
--
906
906
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
908
908
:data: `sys.unraisablehook `. Previously, errors were ignored silently by default,
909
909
and only logged in :ref: `Python Development Mode <devmode >` or on :ref: `Python
910
910
built on debug mode <debug-build>`.
@@ -957,7 +957,7 @@ mimetypes
957
957
mmap
958
958
----
959
959
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
961
961
that can be used when a seekable file-like object is required.
962
962
The :meth: `~mmap.mmap.seek ` method now returns the new absolute position.
963
963
(Contributed by Donghee Na and Sylvie Liberman in :gh: `111835 `.)
@@ -1091,7 +1091,7 @@ pathlib
1091
1091
pdb
1092
1092
---
1093
1093
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
1095
1095
the new ``exceptions [exc_number] `` command for Pdb. (Contributed by Matthias
1096
1096
Bussonnier in :gh: `106676 `.)
1097
1097
@@ -1187,7 +1187,7 @@ subprocess
1187
1187
more situations. Notably in the default case of ``close_fds=True `` on more
1188
1188
recent versions of platforms including Linux, FreeBSD, and Solaris where the
1189
1189
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 `
1191
1191
based code. A private control knob :attr: `!subprocess._USE_POSIX_SPAWN ` can
1192
1192
be set to ``False `` if you need to force :mod: `subprocess ` not to ever use
1193
1193
:func: `os.posix_spawn `. Please report your reason and platform details in
@@ -1198,7 +1198,7 @@ subprocess
1198
1198
sys
1199
1199
---
1200
1200
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.
1202
1202
This function is not guaranteed to exist in all implementations of Python.
1203
1203
(Contributed by Serhiy Storchaka in :gh: `78573 `.)
1204
1204
@@ -1214,7 +1214,7 @@ time
1214
1214
----
1215
1215
1216
1216
* 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 ,
1218
1218
instead of the ``GetTickCount64() `` clock which has a resolution of 15.6 ms.
1219
1219
(Contributed by Victor Stinner in :gh: `88494 `.)
1220
1220
@@ -1245,7 +1245,7 @@ tkinter
1245
1245
1246
1246
* Add new optional keyword-only parameter *return_ints * in
1247
1247
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
1249
1249
as an integer instead of a 1-tuple or ``None ``.
1250
1250
(Contributed by Serhiy Storchaka in :gh: `97928 `.)
1251
1251
@@ -1288,8 +1288,8 @@ traceback
1288
1288
types
1289
1289
-----
1290
1290
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
1293
1293
an iterable of key-value pairs.
1294
1294
(Contributed by Serhiy Storchaka in :gh: `108191 `.)
1295
1295
@@ -1715,7 +1715,7 @@ New Deprecations
1715
1715
1716
1716
(Contributed by Erlend E. Aasland in :gh: `107948 ` and :gh: `108278 `.)
1717
1717
1718
- * :mod: `sys `: :func: `sys._enablelegacywindowsfsencoding ` function.
1718
+ * :mod: `sys `: The :func: `sys._enablelegacywindowsfsencoding ` function is deprecated .
1719
1719
Replace it with the :envvar: `PYTHONLEGACYWINDOWSFSENCODING ` environment variable.
1720
1720
(Contributed by Inada Naoki in :gh: `73427 `.)
1721
1721
@@ -1739,8 +1739,8 @@ New Deprecations
1739
1739
deprecated. Passing ``None `` to the 'fields' parameter
1740
1740
(``NT = NamedTuple("NT", None) `` or ``TD = TypedDict("TD", None) ``) is also
1741
1741
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
1744
1744
``class TD(TypedDict): pass `` or ``TD = TypedDict("TD", {}) ``.
1745
1745
(Contributed by Alex Waygood in :gh: `105566 ` and :gh: `105570 `.)
1746
1746
@@ -1757,7 +1757,7 @@ New Deprecations
1757
1757
1758
1758
* :ref: `user-defined-funcs `:
1759
1759
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
1761
1761
different types are: plain function, generator, async generator and
1762
1762
coroutine.
1763
1763
(Contributed by Irit Katriel in :gh: `81137 `.)
@@ -1998,7 +1998,7 @@ New Features
1998
1998
(Contributed by Victor Stinner in :gh: `116936 `.)
1999
1999
2000
2000
* 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
2002
2002
destruction the same way the :mod: `tracemalloc ` module does. (Contributed
2003
2003
by Pablo Galindo in :gh: `93502 `.)
2004
2004
0 commit comments