https://github.com/python/cpython/commit/6ce19a86676dbb8f22abedc44f2c0250d5867f0c
commit: 6ce19a86676dbb8f22abedc44f2c0250d5867f0c
branch: 3.15
author: Bhuvansh <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-08-02T17:49:59+03:00
summary:
[3.15] gh-155052: Fix docstring of decimal.Context.copy (GH-155062) (GH-155081)
(cherry picked from commit 04a1fcfdabb3a9d61cc247dfec13d601ce3398e9)
files:
M Modules/_decimal/_decimal.c
M Modules/_decimal/clinic/_decimal.c.h
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
index 8f3c9694db247da..01caedee08a8eb2 100644
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -1690,12 +1690,12 @@ _decimal.Context.copy
cls: defining_class
-Return a duplicate of the context with all flags cleared.
+Return a duplicate of the context.
[clinic start generated code]*/
static PyObject *
_decimal_Context_copy_impl(PyObject *self, PyTypeObject *cls)
-/*[clinic end generated code: output=31c9c8eeb0c0cf77 input=aef1c0bddabdf8f0]*/
+/*[clinic end generated code: output=31c9c8eeb0c0cf77 input=87f8b92b1c7462a5]*/
{
decimal_state *state = PyType_GetModuleState(cls);
diff --git a/Modules/_decimal/clinic/_decimal.c.h
b/Modules/_decimal/clinic/_decimal.c.h
index c803006ad443825..0fc6c5ab7ffb73c 100644
--- a/Modules/_decimal/clinic/_decimal.c.h
+++ b/Modules/_decimal/clinic/_decimal.c.h
@@ -371,7 +371,7 @@ PyDoc_STRVAR(_decimal_Context_copy__doc__,
"copy($self, /)\n"
"--\n"
"\n"
-"Return a duplicate of the context with all flags cleared.");
+"Return a duplicate of the context.");
#define _DECIMAL_CONTEXT_COPY_METHODDEF \
{"copy", _PyCFunction_CAST(_decimal_Context_copy),
METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _decimal_Context_copy__doc__},
@@ -6984,4 +6984,4 @@ _decimal_Context_same_quantum(PyObject *context,
PyTypeObject *cls, PyObject *co
#ifndef _DECIMAL_CONTEXT_APPLY_METHODDEF
#define _DECIMAL_CONTEXT_APPLY_METHODDEF
#endif /* !defined(_DECIMAL_CONTEXT_APPLY_METHODDEF) */
-/*[clinic end generated code: output=0eb835634388294e input=a9049054013a1b77]*/
+/*[clinic end generated code: output=72f619bdb52660d6 input=a9049054013a1b77]*/
_______________________________________________
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]