diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2018-09-03 21:20:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-03 21:20:06 (GMT) |
commit | e9ba3705de656215d52b8f8f4a2e7ad60190e944 (patch) | |
tree | fd2e22464103a3a36efd27788e02c697b199b43a /Misc | |
parent | 65fc98e7b1f62c2e621f04780a3a77c3498cc195 (diff) | |
download | cpython-e9ba3705de656215d52b8f8f4a2e7ad60190e944.zip cpython-e9ba3705de656215d52b8f8f4a2e7ad60190e944.tar.gz cpython-e9ba3705de656215d52b8f8f4a2e7ad60190e944.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-03-19-00-59-20.bpo-33083.Htztjl.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-03-19-00-59-20.bpo-33083.Htztjl.rst b/Misc/NEWS.d/next/Core and Builtins/2018-03-19-00-59-20.bpo-33083.Htztjl.rst new file mode 100644 index 0000000..81df839 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-03-19-00-59-20.bpo-33083.Htztjl.rst @@ -0,0 +1,2 @@ +``math.factorial`` no longer accepts arguments that are not int-like. +Patch by Pablo Galindo. |