From 2f153620010256b7fb0bd6d51fc7e4c308cc5c1f Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Tue, 9 Jun 2020 10:18:05 +0200 Subject: [PATCH 1/2] Remove reference to 3.7 and 3.8 backports. --- Doc/library/decimal.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 69a20fca17898ab..38ad04177c5e894 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -2193,4 +2193,3 @@ are expected to be exact. .. [#] .. versionchanged:: 3.9 This approach now works for all exact results except for non-integer powers. - Also backported to 3.7 and 3.8. From f7a6cd6a45ccb036bb36b509ffe3eb23bdc70347 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Sun, 28 Jun 2020 21:17:28 +0200 Subject: [PATCH 2/2] Update the required libmpdec version for the decimal module. --- .../next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst | 1 + Modules/_decimal/_decimal.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst diff --git a/Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst b/Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst new file mode 100644 index 000000000000000..a43eab8f4dcdd0d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst @@ -0,0 +1 @@ +The decimal module now requires libmpdec-2.5.0. diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 20ba8fb77ad44f3..ff7c647c2220c18 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -36,8 +36,8 @@ #include "docstrings.h" -#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02040100 - #error "libmpdec version >= 2.4.1 required" +#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02050000 + #error "libmpdec version >= 2.5.0 required" #endif