@@ -480,17 +480,24 @@ Other Language Changes
480
480
there is a mixture of :class: `str ` and :class: `bytes ` keys.
481
481
(Contributed by Thomas Grainger in :gh: `91181 `.)
482
482
483
+
484
+ .. _whatsnew311-other-implementation-changes :
485
+
483
486
Other CPython Implementation Changes
484
487
====================================
485
488
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.
488
492
(Contributed by Mark Dickinson and Dong-hee Na in :issue: `24234 `.)
489
493
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.
494
501
(Contributed by Inada Naoki in :issue: `29410 `.)
495
502
496
503
* When an active exception is re-raised by a :keyword: `raise ` statement with no parameters,
@@ -499,25 +506,28 @@ Other CPython Implementation Changes
499
506
reflected in the re-raised exception.
500
507
(Contributed by Irit Katriel in :issue: `45711 `.)
501
508
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 ``.
505
513
(Contributed by Irit Katriel in :issue: `45711 `.)
506
514
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.
510
519
(Contributed by Bastian Neuburger in :issue: `44934 `.)
511
520
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
513
522
initialization to use :c:member: `PyConfig.module_search_paths ` to initialize
514
523
:data: `sys.path `. Otherwise, initialization will recalculate the path and replace
515
524
any values added to ``module_search_paths ``.
516
525
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 `.
521
531
(Contributed by Éric Araujo in :issue: `46142 `.)
522
532
523
533
* Converting between :class: `int ` and :class: `str ` in bases other than 2
0 commit comments