8000 [3.12] Misc updates to Whatsnew 3.12 (GH-104912) (GH-104915) · python/cpython@4833f62 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4833f62

Browse files
[3.12] Misc updates to Whatsnew 3.12 (GH-104912) (GH-104915)
1 parent 51eb009 commit 4833f62

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

Doc/library/json.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,10 @@ Exceptions
552552
AttrDict(mapping, **kwargs)
553553
AttrDict(iterable, **kwargs)
554554
555-
Subclass of :class:`dict` object that also supports attribute style dotted access.
555+
Subclass of :class:`dict` that also supports attribute style dotted access.
556556

557557
This class is intended for use with the :attr:`object_hook` in
558-
:func:`json.load` and :func:`json.loads`::
558+
:func:`json.load` and :func:`json.loads`:
559559

560560
.. doctest::
561561

Doc/whatsnew/3.12.rst

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,11 @@ Other Language Changes
341341
(Contributed by Nikita Sobolev in :gh:`100581`.)
342342

343343
* :class:`slice` objects are now hashable, allowing them to be used as dict keys and
344-
set items. (Contributed by Will Bradshaw and Furkan Onder in :gh:`101264`.)
344+
set items. (Contributed by Will Bradshaw, Furkan Onder, and Raymond Hettinger in :gh:`101264`.)
345+
346+
* :func:`sum` now uses Neumaier summation to improve accuracy when summing
347+
floats or mixed ints and floats.
348+
(Contributed by Raymond Hettinger in :gh:`100425`.)
345349

346350
* Exceptions raised in a typeobject's ``__set_name__`` method are no longer
347351
wrapped by a :exc:`RuntimeError`. Context information is added to the
@@ -493,12 +497,24 @@ itertools
493497
tuples where the last batch may be shorter than the rest.
494498
(Contributed by Raymond Hettinger in :gh:`98363`.)
495499

500+
json
501+
----
502+
503+
* Added :class:`json.AttrDict` for use with ``object_hook`` in :func:`json.load`
504+
or :func:`json.loads`. This is a subclass of :class:`dict` that also supports
505+
attribute style dotted access.
506+
(Contributed by Raymond Hettinger in :gh:`96145`.)
507+
496508
math
497509
----
498510

499511
* Added :func:`math.sumprod` for computing a sum of products.
500512
(Contributed by Raymond Hettinger in :gh:`100485`.)
501513

514+
* Extended :func:`math.nextafter` to include a *steps* argument
515+
for moving up or down multiple steps at a time.
516+
(By Matthias Goergens, Mark Dickinson, and Raymond Hettinger in :gh:`94906`.)
517+
502518
os
503519
--
504520

@@ -541,6 +557,15 @@ pdb
541557
value.
542558
(Contributed by Tian Gao in :gh:`103693`.)
543559

560+
random
561+
------
562+
563+
* Added :func:`random.binomialvariate`.
564+
(Contributed by Raymond Hettinger in :gh:`81620`.)
565+
566+
* Added a default of ``lamb=1.0`` to :func:`random.expovariate`.
567+
(Contributed by Raymond Hettinger in :gh:`100234`.)
568+
544569
shutil
545570
------
546571

@@ -594,6 +619,13 @@ sqlite3
594619
to make configuration changes to a database connection.
595620
(Contributed by Erlend E. Aasland in :gh:`103489`.)
596621

622+
statistics
623+
----------
624+
625+
* Extended :func:`statistics.correlation` to include as a ``ranked`` method
626+
for computing the Spearman correlation of ranked data.
627+
(Contributed by Raymond Hettinger in :gh:`95861`.)
628+
597629
threading
598630
---------
599631

@@ -915,6 +947,7 @@ APIs:
915947
* :func:`!unittest.makeSuite` (:gh:`50096`)
916948
* :func:`!unittest.getTestCaseNames` (:gh:`50096`)
917949
* :class:`!webbrowser.MacOSX` (:gh:`86421`)
950+
* :class:`classmethod` descriptor chaining (:gh:`89519`)
918951

919952
Pending Removal in Python 3.14
920953
------------------------------

0 commit comments

Comments
 (0)
0