Skip to content

Commit ab89aff

Browse files
AA-Turnermiss-islington
authored andcommitted
pythonGH-109190: Copyedit 3.12 What's New: Other Language Changes (pythonGH-109660)
(cherry picked from commit cade596) Co-authored-by: Adam Turner <[email protected]>
1 parent b7801d7 commit ab89aff

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,12 @@ and others in :gh:`103764`.)
460460
Other Language Changes
461461
======================
462462

463-
* Add :ref:`perf_profiling` through the new
464-
environment variable :envvar:`PYTHONPERFSUPPORT`,
465-
the new command-line option :option:`-X perf <-X>`,
463+
* Add :ref:`support for the perf profiler <perf_profiling>` through the new
464+
environment variable :envvar:`PYTHONPERFSUPPORT`
465+
and command-line option :option:`-X perf <-X>`,
466466
as well as the new :func:`sys.activate_stack_trampoline`,
467467
:func:`sys.deactivate_stack_trampoline`,
468-
and :func:`sys.is_stack_trampoline_active` APIs.
468+
and :func:`sys.is_stack_trampoline_active` functions.
469469
(Design by Pablo Galindo. Contributed by Pablo Galindo and Christian Heimes
470470
with contributions from Gregory P. Smith [Google] and Mark Shannon
471471
in :gh:`96123`.)
@@ -474,7 +474,7 @@ Other Language Changes
474474
have a new a *filter* argument that allows limiting tar features than may be
475475
surprising or dangerous, such as creating files outside the destination
476476
directory.
477-
See :ref:`tarfile-extraction-filter` for details.
477+
See :ref:`tarfile extraction filters <tarfile-extraction-filter>` for details.
478478
In Python 3.14, the default will switch to ``'data'``.
479479
(Contributed by Petr Viktorin in :pep:`706`.)
480480

@@ -502,8 +502,8 @@ Other Language Changes
502502
* A backslash-character pair that is not a valid escape sequence now generates
503503
a :exc:`SyntaxWarning`, instead of :exc:`DeprecationWarning`.
504504
For example, ``re.compile("\d+\.\d+")`` now emits a :exc:`SyntaxWarning`
505-
(``"\d"`` is an invalid escape sequence), use raw strings for regular
506-
expression: ``re.compile(r"\d+\.\d+")``.
505+
(``"\d"`` is an invalid escape sequence, use raw strings for regular
506+
expression: ``re.compile(r"\d+\.\d+")``).
507507
In a future Python version, :exc:`SyntaxError` will eventually be raised,
508508
instead of :exc:`SyntaxWarning`.
509509
(Contributed by Victor Stinner in :gh:`98401`.)
@@ -532,7 +532,7 @@ Other Language Changes
532532
floats or mixed ints and floats.
533533
(Contributed by Raymond Hettinger in :gh:`100425`.)
534534

535-
* Exceptions raised in a typeobject's ``__set_name__`` method are no longer
535+
* Exceptions raised in a class or type's ``__set_name__`` method are no longer
536536
wrapped by a :exc:`RuntimeError`. Context information is added to the
537537
exception as a :pep:`678` note. (Contributed by Irit Katriel in :gh:`77757`.)
538538

0 commit comments

Comments
 (0)