Skip to content

Commit 658ce5a

Browse files
AA-TurnerGlyphack
authored andcommitted
pythonGH-109190: Copyedit 3.12 What's New: Other Language Changes (python#109660)
1 parent 37bb0dd commit 658ce5a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Doc/whatsnew/3.12.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -459,12 +459,12 @@ and others in :gh:`103764`.)
459459
Other Language Changes
460460
======================
461461

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

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

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

0 commit comments

Comments
 (0)