@@ -439,17 +439,24 @@ Other Language Changes
439
439
there is a mixture of strings and bytes keys.
440
440
(Contributed by Thomas Grainger in :gh: `91181 `.)
441
441
442
+
443
+ .. _whatsnew311-other-implementation-changes :
444
+
442
445
Other CPython Implementation Changes
443
446
====================================
444
447
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.
447
451
(Contributed by Mark Dickinson and Dong-hee Na in :issue: `24234 `.)
448
452
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.
453
460
(Contributed by Inada Naoki in :issue: `29410 `.)
454
461
455
462
* When an active exception is re-raised by a :keyword: `raise ` statement with no parameters,
@@ -458,25 +465,28 @@ Other CPython Implementation Changes
458
465
reflected in the re-raised exception.
459
466
(Contributed by Irit Katriel in :issue: `45711 `.)
460
467
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 ``.
464
472
(Contributed by Irit Katriel in :issue: `45711 `.)
465
473
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.
469
478
(Contributed by Bastian Neuburger in :issue: `44934 `.)
470
479
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
472
481
initialization to use :c:member: `PyConfig.module_search_paths ` to initialize
473
482
:data: `sys.path `. Otherwise, initialization will recalculate the path and replace
474
483
any values added to ``module_search_paths ``.
475
484
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 `.
480
490
(Contributed by Éric Araujo in :issue: `46142 `.)
481
491
482
492
* Converting between :class: `int ` and :class: `str ` in bases other than 2
0 commit comments