]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-155052: Fix docstring of decimal.Context.copy (GH-155062) main
authorBhuvansh <bhuvanshkataria@gmail.com>
Sun, 2 Aug 2026 11:27:06 +0000 (11:27 +0000)
committerGitHub <noreply@github.com>
Sun, 2 Aug 2026 11:27:06 +0000 (14:27 +0300)
Modules/_decimal/_decimal.c
Modules/_decimal/clinic/_decimal.c.h

index 1244505db7c612dbc732b31e5000b508819e2e84..ada9b02d690717f45d9b140fbc482a5f2fb8da0e 100644 (file)
@@ -1696,12 +1696,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);
 
index 965e5f8d0da9955bc2486342c80e9916e2554002..8ad883d8a2d14dca36a0c4fb7aaf0d6ee45691ae 100644 (file)
@@ -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__},
@@ -7100,4 +7100,4 @@ exit:
 #ifndef _DECIMAL_CONTEXT_APPLY_METHODDEF
     #define _DECIMAL_CONTEXT_APPLY_METHODDEF
 #endif /* !defined(_DECIMAL_CONTEXT_APPLY_METHODDEF) */
-/*[clinic end generated code: output=07ec694c7fd6b048 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=718b1f6c20412350 input=a9049054013a1b77]*/