10000 Misc updates to Whatsnew 3.12 by rhettinger · Pull Request #104912 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Misc updates to Whatsnew 3.12 #104912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
10000 Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Misc updates to Whatsnew 3.12
  • Loading branch information
rhettinger committed May 24, 2023
commit bdfe8788e50bd27eaae33c74e699ed3620ebb304
26 changes: 25 additions & 1 deletion Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@ Other Language Changes
(Contributed by Nikita Sobolev in :gh:`100581`.)

* :class:`slice` objects are now hashable, allowing them to be used as dict keys and
set items. (Contributed by Will Bradshaw and Furkan Onder in :gh:`101264`.)
set items. (Contributed by Will Bradshaw, Furkan Onder, and Raymond Hettinger in :gh:`101264`.)

* :func:`sum` now uses Neumaier summation to improve accuracy when summing
floats or mixed ints and floats.
(Contributed by Raymond Hettinger in :gh:`100425`.)

* Exceptions raised in a typeobject's ``__set_name__`` method are no longer
wrapped by a :exc:`RuntimeError`. Context information is added to the
Expand Down Expand Up @@ -499,6 +503,10 @@ math
* Added :func:`math.sumprod` for computing a sum of products.
(Contributed by Raymond Hettinger in :gh:`100485`.)

* Extended :func:`math.nextafter` to include a `steps` argument
for moving up or down multiple steps at a time.
(By Matthias Goergens, Mark Dickinson, and Raymond Hettingerin :gh:`94906`.)

os
--

Expand Down Expand Up @@ -541,6 +549,15 @@ pdb
value.
(Contributed by Tian Gao in :gh:`103693`.)

random
------

* Added :func:`random.binomialvariate`.
(Contributed by Raymond Hettinger in :gh:`81620`.)

* Added a default parameter of `lamb=1.0` to :func:`random.expovariate`.
(Contributed by Raymond Hettinger in :gh:`100234`.)

shutil
------

Expand Down Expand Up @@ -594,6 +611,13 @@ sqlite3
to make configuration changes to a database connection.
(Contributed by Erlend E. Aasland in :gh:`103489`.)

statistics
----------

* Extended :func:`statistics.correlation` to include as a `ranked` method
for computing the Spearman correlation of ranked data.
(Contributed by Raymond Hettinger in :gh:`95861`.)

threading
---------

Expand Down
0