From: AZero13 Date: Mon, 19 Jan 2026 12:19:20 +0000 (-0500) Subject: gh-142440: Fix _decimal builds configured with EXTRA_FUNCTIONALITY (GH-142441) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dca4e3af118328d7013b58106d129b162047cb3;p=thirdparty%2FPython%2Fcpython.git gh-142440: Fix _decimal builds configured with EXTRA_FUNCTIONALITY (GH-142441) There was a typo in _decimal.Context.apply(). --- 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 index 000000000000..5c1db433e1b1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-12-08-18-40-17.gh-issue-142438.tH-Y16.rst @@ -0,0 +1,2 @@ +Fix _decimal builds configured with EXTRA_FUNCTIONALITY by correcting the +Context.apply wrapper to pass the right argument. diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 33e624e342ea..dcea4da8f242 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -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