Skip to content

Commit 65b2591

Browse files
miss-islingtonCAM-Gerlach
authored andcommitted
gh-95913: Copyedit/improve Implementation Changes What's New section (GH-97720)
* Add and refine reST/Sphinx syntax for implementation changes section * Clarify and refine wording in the Implementation Changes section * Elide unnecessary comma Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 4e73181) Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent 12bd7e9 commit 65b2591

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -439,17 +439,24 @@ Other Language Changes
439439
there is a mixture of strings and bytes keys.
440440
(Contributed by Thomas Grainger in :gh:`91181`.)
441441

442+
443+
.. _whatsnew311-other-implementation-changes:
444+
442445
Other CPython Implementation Changes
443446
====================================
444447

445-
* Special methods :meth:`complex.__complex__` and :meth:`bytes.__bytes__` are implemented to
446-
support :class:`typing.SupportsComplex` and :class:`typing.SupportsBytes` protocols.
448+
* The special methods :meth:`~object.__complex__` for :class:`complex`
449+
and :meth:`~object.__bytes__` for :class:`bytes` are implemented to support
450+
the :class:`typing.SupportsComplex` and :class:`typing.SupportsBytes` protocols.
447451
(Contributed by Mark Dickinson and Dong-hee Na in :issue:`24234`.)
448452

449-
* ``siphash13`` is added as a new internal hashing algorithms. It has similar security
450-
properties as ``siphash24`` but it is slightly faster for long inputs. ``str``, ``bytes``,
451-
and some other types now use it as default algorithm for :func:`hash`. :pep:`552`
452-
hash-based pyc files now use ``siphash13``, too.
453+
* ``siphash13`` is added as a new internal hashing algorithm.
454+
It has similar security properties as ``siphash24``,
455+
but it is slightly faster for long inputs.
456+
:class:`str`, :class:`bytes`, and some other types
457+
now use it as the default algorithm for :func:`hash`.
458+
:pep:`552` :ref:`hash-based .pyc files <pyc-invalidation>`
459+
now use ``siphash13`` too.
453460
(Contributed by Inada Naoki in :issue:`29410`.)
454461

455462
* When an active exception is re-raised by a :keyword:`raise` statement with no parameters,
@@ -458,25 +465,28 @@ Other CPython Implementation Changes
458465
reflected in the re-raised exception.
459466
(Contributed by Irit Katriel in :issue:`45711`.)
460467

461-
* The interpreter state's representation of handled exceptions (a.k.a exc_info, or
462-
_PyErr_StackItem) now has only the ``exc_value`` field, ``exc_type`` and ``exc_traceback``
463-
have been removed as their values can be derived from ``exc_value``.
468+
* The interpreter state's representation of handled exceptions
469+
(aka ``exc_info`` or ``_PyErr_StackItem``)
470+
now only has the ``exc_value`` field; ``exc_type`` and ``exc_traceback``
471+
have been removed, as they can be derived from ``exc_value``.
464472
(Contributed by Irit Katriel in :issue:`45711`.)
465473

466-
* A new command line option for the Windows installer ``AppendPath`` has been added.
467-
It behaves similiar to ``PrependPath`` but appends the install and scripts directories
468-
instead of prepending them.
474+
* A new :ref:`command line option <install-quiet-option>`, ``AppendPath``,
475+
has been added for the Windows installer.
476+
It behaves similarly to ``PrependPath``,
477+
but appends the install and scripts directories instead of prepending them.
469478
(Contributed by Bastian Neuburger in :issue:`44934`.)
470479

471-
* The :c:member:`PyConfig.module_search_paths_set` field must now be set to 1 for
480+
* The :c:member:`PyConfig.module_search_paths_set` field must now be set to ``1`` for
472481
initialization to use :c:member:`PyConfig.module_search_paths` to initialize
473482
:data:`sys.path`. Otherwise, initialization will recalculate the path and replace
474483
any values added to ``module_search_paths``.
475484

476-
* The output of the :option:`--help` option is changed to fit inside 50 lines and 80
477-
columns. Information about :ref:`Python environment variables <using-on-envvars>`
478-
and :option:`-X options <-X>` is available with the new :option:`--help-env` or
479-
:option:`--help-xoptions` flags, and with :option:`--help-all`.
485+
* The output of the :option:`--help` option now fits in 50 lines/80 columns.
486+
Information about :ref:`Python environment variables <using-on-envvars>`
487+
and :option:`-X` options is now available using the respective
488+
:option:`--help-env` and :option:`--help-xoptions` flags,
489+
and with the new :option:`--help-all`.
480490
(Contributed by Éric Araujo in :issue:`46142`.)
481491

482492
* Converting between :class:`int` and :class:`str` in bases other than 2

0 commit comments

Comments
 (0)