]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94906: Support multiple steps in math.nextafter (#103881)
authorMatthias Görgens <matthias.goergens@gmail.com>
Fri, 19 May 2023 20:03:49 +0000 (04:03 +0800)
committerGitHub <noreply@github.com>
Fri, 19 May 2023 20:03:49 +0000 (21:03 +0100)
commit6e39fa19555043588910d10f1fe677cf6b04d77e
tree04f9df16fd8871323c195e79f2afc251c2882410
parentc3f43bfb4bec39ff8f2c36d861a3c3a243bcb3af
gh-94906: Support multiple steps in math.nextafter (#103881)

This PR updates `math.nextafter` to add a new `steps` argument. The behaviour is as though `math.nextafter` had been called `steps` times in succession.

---------

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Doc/library/math.rst
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Lib/test/test_math.py
Lib/test/test_math_property.py [new file with mode: 0644]
Misc/NEWS.d/next/Library/2022-07-16-17-15-29.gh-issue-94906.C4G8DG.rst [new file with mode: 0644]
Modules/clinic/mathmodule.c.h
Modules/mathmodule.c