https://github.com/python/cpython/commit/7dca4e3af118328d7013b58106d129b162047cb3
commit: 7dca4e3af118328d7013b58106d129b162047cb3
branch: main
author: AZero13 <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-01-19T14:19:20+02:00
summary:

gh-142440: Fix _decimal builds configured with EXTRA_FUNCTIONALITY (GH-142441)

There was a typo in _decimal.Context.apply().

files:
A Misc/NEWS.d/next/Library/2025-12-08-18-40-17.gh-issue-142438.tH-Y16.rst
M 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
index 00000000000000..5c1db433e1b14b
--- /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 33e624e342eaee..dcea4da8f24268 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
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to