Skip to content

Commit f46785f

Browse files
authored
pythongh-133879: Copyedit "What's new in Python 3.15" (python#141717)
1 parent b420f6b commit f46785f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Doc/deprecations/pending-removal-in-future.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ although there is currently no date scheduled for their removal.
7676
* :mod:`mailbox`: Use of StringIO input and text mode is deprecated, use
7777
BytesIO and binary mode instead.
7878

79-
* :mod:`os`: Calling :func:`os.register_at_fork` in multi-threaded process.
79+
* :mod:`os`: Calling :func:`os.register_at_fork` in a multi-threaded process.
8080

8181
* :class:`!pydoc.ErrorDuringImport`: A tuple value for *exc_info* parameter is
8282
deprecated, use an exception instance.

Doc/whatsnew/3.15.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,7 @@ Other language changes
316316
and compression. Common code patterns which can be optimized with
317317
:func:`~bytearray.take_bytes` are listed below.
318318

319-
(Contributed by Cody Maloney in :gh:`139871`.)
320-
321-
.. list-table:: Suggested Optimizing Refactors
319+
.. list-table:: Suggested optimizing refactors
322320
:header-rows: 1
323321

324322
* - Description
@@ -387,10 +385,12 @@ Other language changes
387385
buffer.resize(n)
388386
data = buffer.take_bytes()
389387

388+
(Contributed by Cody Maloney in :gh:`139871`.)
389+
390390
* Many functions related to compiling or parsing Python code, such as
391391
:func:`compile`, :func:`ast.parse`, :func:`symtable.symtable`,
392-
and :func:`importlib.abc.InspectLoader.source_to_code`, now allow to pass
393-
the module name. It is needed to unambiguous :ref:`filter <warning-filter>`
392+
and :func:`importlib.abc.InspectLoader.source_to_code`, now allow the module
393+
name to be passed. It is needed to unambiguously :ref:`filter <warning-filter>`
394394
syntax warnings by module name.
395395
(Contributed by Serhiy Storchaka in :gh:`135801`.)
396396

@@ -776,6 +776,17 @@ unittest
776776
(Contributed by Garry Cairns in :gh:`134567`.)
777777

778778

779+
venv
780+
----
781+
782+
* On POSIX platforms, platlib directories will be created if needed when
783+
creating virtual environments, instead of using ``lib64 -> lib`` symlink.
784+
This means purelib and platlib of virtual environments no longer share the
785+
same ``lib`` directory on platforms where :data:`sys.platlibdir` is not
786+
equal to ``lib``.
787+
(Contributed by Rui Xi in :gh:`133951`.)
788+
789+
779790
warnings
780791
--------
781792

@@ -788,17 +799,6 @@ warnings
788799
(Contributed by Serhiy Storchaka in :gh:`135801`.)
789800

790801

791-
venv
792-
----
793-
794-
* On POSIX platforms, platlib directories will be created if needed when
795-
creating virtual environments, instead of using ``lib64 -> lib`` symlink.
796-
This means purelib and platlib of virtual environments no longer share the
797-
same ``lib`` directory on platforms where :data:`sys.platlibdir` is not
798-
equal to ``lib``.
799-
(Contributed by Rui Xi in :gh:`133951`.)
800-
801-
802802
xml.parsers.expat
803803
-----------------
804804

@@ -1242,7 +1242,7 @@ Porting to Python 3.15
12421242
This section lists previously described changes and other bugfixes
12431243
that may require changes to your code.
12441244

1245-
* :class:`sqlite3.Connection` APIs has been cleaned up.
1245+
* :class:`sqlite3.Connection` APIs have been cleaned up.
12461246

12471247
* All parameters of :func:`sqlite3.connect` except *database* are now keyword-only.
12481248
* The first three parameters of methods :meth:`~sqlite3.Connection.create_function`
@@ -1262,7 +1262,7 @@ that may require changes to your code.
12621262
* :meth:`~mmap.mmap.resize` has been removed on platforms that don't support the
12631263
underlying syscall, instead of raising a :exc:`SystemError`.
12641264

1265-
* Resource warning is now emitted for unclosed
1265+
* A resource warning is now emitted for an unclosed
12661266
:func:`xml.etree.ElementTree.iterparse` iterator if it opened a file.
12671267
Use its :meth:`!close` method or the :func:`contextlib.closing` context
12681268
manager to close it.

0 commit comments

Comments
 (0)