]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142440: Fix _decimal builds configured with EXTRA_FUNCTIONALITY (GH-142441)
authorAZero13 <gfunni234@gmail.com>
Mon, 19 Jan 2026 12:19:20 +0000 (07:19 -0500)
committerGitHub <noreply@github.com>
Mon, 19 Jan 2026 12:19:20 +0000 (14:19 +0200)
There was a typo in _decimal.Context.apply().

Misc/NEWS.d/next/Library/2025-12-08-18-40-17.gh-issue-142438.tH-Y16.rst [new file with mode: 0644]
Modules/_decimal/_decimal.c

diff --git a/Misc/NEWS.d/next/Library/2025-12-08-18-40-17.gh-issue-142438.tH-Y16.rst b/Misc/NEWS.d/next/Library/2025-12-08-18-40-17.gh-issue-142438.tH-Y16.rst
new file mode 100644 (file)
index 0000000..5c1db43
--- /dev/null
@@ -0,0 +1,2 @@
+Fix _decimal builds configured with EXTRA_FUNCTIONALITY by correcting the
+Context.apply wrapper to pass the right argument.
index 33e624e342eaeebacbb16016fe6793f335f864ad..dcea4da8f24268fae7b36a70990a579c76c895f6 100644 (file)
@@ -6991,7 +6991,7 @@ _decimal_Context_apply_impl(PyObject *context, PyTypeObject *cls,
                             PyObject *x)
 /*[clinic end generated code: output=f8a7142d47ad4ff3 input=388e66ca82733516]*/
 {
-    return _decimal_Context__apply(context, v);
+    return _decimal_Context__apply(context, x);
 }
 #endif