@@ -480,17 +480,24 @@ Other Language Changes
480480 there is a mixture of :class: `str ` and :class: `bytes ` keys.
481481 (Contributed by Thomas Grainger in :gh: `91181 `.)
482482
483+
484+ .. _whatsnew311-other-implementation-changes :
485+
483486Other CPython Implementation Changes
484487====================================
485488
486- * Special methods :meth: `complex.__complex__ ` and :meth: `bytes.__bytes__ ` are implemented to
487- support :class: `typing.SupportsComplex ` and :class: `typing.SupportsBytes ` protocols.
489+ * The special methods :meth: `~object.__complex__ ` for :class: `complex `
490+ and :meth: `~object.__bytes__ ` for :class: `bytes ` are implemented to support
491+ the :class: `typing.SupportsComplex ` and :class: `typing.SupportsBytes ` protocols.
488492 (Contributed by Mark Dickinson and Dong-hee Na in :issue: `24234 `.)
489493
490- * ``siphash13 `` is added as a new internal hashing algorithms. It has similar security
491- properties as ``siphash24 `` but it is slightly faster for long inputs. ``str ``, ``bytes ``,
492- and some other types now use it as default algorithm for :func: `hash `. :pep: `552 `
493- hash-based pyc files now use ``siphash13 ``, too.
494+ * ``siphash13 `` is added as a new internal hashing algorithm.
495+ It has similar security properties as ``siphash24 ``,
496+ but it is slightly faster for long inputs.
497+ :class: `str `, :class: `bytes `, and some other types
498+ now use it as the default algorithm for :func: `hash `.
499+ :pep: `552 ` :ref: `hash-based .pyc files <pyc-invalidation >`
500+ now use ``siphash13 `` too.
494501 (Contributed by Inada Naoki in :issue: `29410 `.)
495502
496503* When an active exception is re-raised by a :keyword: `raise ` statement with no parameters,
@@ -499,25 +506,28 @@ Other CPython Implementation Changes
499506 reflected in the re-raised exception.
500507 (Contributed by Irit Katriel in :issue: `45711 `.)
501508
502- * The interpreter state's representation of handled exceptions (a.k.a exc_info, or
503- _PyErr_StackItem) now has only the ``exc_value `` field, ``exc_type `` and ``exc_traceback ``
504- have been removed as their values can be derived from ``exc_value ``.
509+ * The interpreter state's representation of handled exceptions
510+ (aka ``exc_info `` or ``_PyErr_StackItem ``)
511+ now only has the ``exc_value `` field; ``exc_type `` and ``exc_traceback ``
512+ have been removed, as they can be derived from ``exc_value ``.
505513 (Contributed by Irit Katriel in :issue: `45711 `.)
506514
507- * A new command line option for the Windows installer ``AppendPath `` has been added.
508- It behaves similiar to ``PrependPath `` but appends the install and scripts directories
509- instead of prepending them.
515+ * A new :ref: `command line option <install-quiet-option >`, ``AppendPath ``,
516+ has been added for the Windows installer.
517+ It behaves similarly to ``PrependPath ``,
518+ but appends the install and scripts directories instead of prepending them.
510519 (Contributed by Bastian Neuburger in :issue: `44934 `.)
511520
512- * The :c:member: `PyConfig.module_search_paths_set ` field must now be set to 1 for
521+ * The :c:member: `PyConfig.module_search_paths_set ` field must now be set to `` 1 `` for
513522 initialization to use :c:member: `PyConfig.module_search_paths ` to initialize
514523 :data: `sys.path `. Otherwise, initialization will recalculate the path and replace
515524 any values added to ``module_search_paths ``.
516525
517- * The output of the :option: `--help ` option is changed to fit inside 50 lines and 80
518- columns. Information about :ref: `Python environment variables <using-on-envvars >`
519- and :option: `-X options <-X> ` is available with the new :option: `--help-env ` or
520- :option: `--help-xoptions ` flags, and with :option: `--help-all `.
526+ * The output of the :option: `--help ` option now fits in 50 lines/80 columns.
527+ Information about :ref: `Python environment variables <using-on-envvars >`
528+ and :option: `-X ` options is now available using the respective
529+ :option: `--help-env ` and :option: `--help-xoptions ` flags,
530+ and with the new :option: `--help-all `.
521531 (Contributed by Éric Araujo in :issue: `46142 `.)
522532
523533
0 commit comments