@@ -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
@@ -892,7 +892,7 @@ importlib
892
892
io
893
893
--
894
894
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
896
896
:data: `sys.unraisablehook `. Previously, errors were ignored silently by default,
897
897
and only logged in :ref: `Python Development Mode <devmode >` or on :ref: `Python
898
898
built on debug mode <debug-build>`.
@@ -945,7 +945,7 @@ mimetypes
945
945
mmap
946
946
----
947
947
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
949
949
that can be used when a seekable file-like object is required.
950
950
The :meth: `~mmap.mmap.seek ` method now returns the new absolute position.
951
951
(Contributed by Donghee Na and Sylvie Liberman in :gh: `111835 `.)
@@ -1079,7 +1079,7 @@ pathlib
1079
1079
pdb
1080
1080
---
1081
1081
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
1083
1083
the new ``exceptions [exc_number] `` command for Pdb. (Contributed by Matthias
1084
1084
Bussonnier in :gh: `106676 `.)
1085
1085
@@ -1175,7 +1175,7 @@ subprocess
1175
1175
more situations. Notably in the default case of ``close_fds=True `` on more
1176
1176
recent versions of platforms including Linux, FreeBSD, and Solaris where the
1177
1177
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 `
1179
1179
based code. A private control knob :attr: `!subprocess._USE_POSIX_SPAWN ` can
1180
1180
be set to ``False `` if you need to force :mod: `subprocess ` not to ever use
1181
1181
:func: `os.posix_spawn `. Please report your reason and platform details in
@@ -1186,7 +1186,7 @@ subprocess
1186
1186
sys
1187
1187
---
1188
1188
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.
1190
1190
This function is not guaranteed to exist in all implementations of Python.
1191
1191
(Contributed by Serhiy Storchaka in :gh: `78573 `.)
1192
1192
@@ -1202,7 +1202,7 @@ time
1202
1202
----
1203
1203
1204
1204
* 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 ,
1206
1206
instead of the ``GetTickCount64() `` clock which has a resolution of 15.6 ms.
1207
1207
(Contributed by Victor Stinner in :gh: `88494 `.)
1208
1208
@@ -1233,7 +1233,7 @@ tkinter
1233
1233
1234
1234
* Add new optional keyword-only parameter *return_ints * in
1235
1235
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
1237
1237
as an integer instead of a 1-tuple or ``None ``.
1238
1238
(Contributed by Serhiy Storchaka in :gh: `97928 `.)
1239
1239
@@ -1276,8 +1276,8 @@ traceback
1276
1276
types
1277
1277
-----
1278
1278
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
1281
1281
an iterable of key-value pairs.
1282
1282
(Contributed by Serhiy Storchaka in :gh: `108191 `.)
1283
1283
@@ -1703,7 +1703,7 @@ New Deprecations
1703
1703
1704
1704
(Contributed by Erlend E. Aasland in :gh: `107948 ` and :gh: `108278 `.)
1705
1705
1706
- * :mod: `sys `: :func: `sys._enablelegacywindowsfsencoding ` function.
1706
+ * :mod: `sys `: The :func: `sys._enablelegacywindowsfsencoding ` function is deprecated .
1707
1707
Replace it with the :envvar: `PYTHONLEGACYWINDOWSFSENCODING ` environment variable.
1708
1708
(Contributed by Inada Naoki in :gh: `73427 `.)
1709
1709
@@ -1727,8 +1727,8 @@ New Deprecations
1727
1727
deprecated. Passing ``None `` to the 'fields' parameter
1728
1728
(``NT = NamedTuple("NT", None) `` or ``TD = TypedDict("TD", None) ``) is also
1729
1729
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
1732
1732
``class TD(TypedDict): pass `` or ``TD = TypedDict("TD", {}) ``.
1733
1733
(Contributed by Alex Waygood in :gh: `105566 ` and :gh: `105570 `.)
1734
1734
@@ -1745,7 +1745,7 @@ New Deprecations
1745
1745
1746
1746
* :ref: `user-defined-funcs `:
1747
1747
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
1749
1749
different types are: plain function, generator, async generator and
1750
1750
coroutine.
1751
1751
(Contributed by Irit Katriel in :gh: `81137 `.)
@@ -1986,7 +1986,7 @@ New Features
1986
1986
(Contributed by Victor Stinner in :gh: `116936 `.)
1987
1987
1988
1988
* 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
1990
1990
destruction the same way the :mod: `tracemalloc ` module does. (Contributed
1991
1991
by Pablo Galindo in :gh: `93502 `.)
1992
1992
0 commit comments