]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33083 - Make math.factorial reject arguments that are not int-like (GH-6149)
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 3 Sep 2018 21:20:06 +0000 (22:20 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Sep 2018 21:20:06 +0000 (22:20 +0100)
commite9ba3705de656215d52b8f8f4a2e7ad60190e944
treefd2e22464103a3a36efd27788e02c697b199b43a
parent65fc98e7b1f62c2e621f04780a3a77c3498cc195
bpo-33083 - Make math.factorial reject arguments that are not int-like (GH-6149)

math.factorial() was accepting non-integral Decimal instances. This is inconsistent with the actual behaviour for floats, which are not accepted.
Lib/test/test_math.py
Misc/NEWS.d/next/Core and Builtins/2018-03-19-00-59-20.bpo-33083.Htztjl.rst [new file with mode: 0644]
Modules/mathmodule.c