From cfe01fdda3785632fcf9093737cbbd9b7aa76e09 Mon Sep 17 00:00:00 2001 From: Yongtao Huang Date: Thu, 18 Dec 2025 11:59:18 +0800 Subject: [PATCH] run PCbuild\amd64\python_d.exe Tools\clinic\clinic.py Python\context.c Update the Argument Clinic docstrings in Python/context.c and regenerate Python/clinic/context.c.h. No behavior change. Signed-off-by: Yongtao Huang --- Python/clinic/context.c.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Python/clinic/context.c.h b/Python/clinic/context.c.h index 5ed74e6e6dd..dafa799263e 100644 --- a/Python/clinic/context.c.h +++ b/Python/clinic/context.c.h @@ -48,7 +48,7 @@ PyDoc_STRVAR(_contextvars_Context_items__doc__, "\n" "Return all variables and their values in the context object.\n" "\n" -"The result is returned as a list of 2-tuples (variable, value)."); +"The result is returned as an iterator of 2-tuples (variable, value)."); #define _CONTEXTVARS_CONTEXT_ITEMS_METHODDEF \ {"items", (PyCFunction)_contextvars_Context_items, METH_NOARGS, _contextvars_Context_items__doc__}, @@ -66,7 +66,7 @@ PyDoc_STRVAR(_contextvars_Context_keys__doc__, "keys($self, /)\n" "--\n" "\n" -"Return a list of all variables in the context object."); +"Return an iterator of all variables in the context object."); #define _CONTEXTVARS_CONTEXT_KEYS_METHODDEF \ {"keys", (PyCFunction)_contextvars_Context_keys, METH_NOARGS, _contextvars_Context_keys__doc__}, @@ -84,7 +84,7 @@ PyDoc_STRVAR(_contextvars_Context_values__doc__, "values($self, /)\n" "--\n" "\n" -"Return a list of all variables\' values in the context object."); +"Return an iterator of all variables\' values in the context object."); #define _CONTEXTVARS_CONTEXT_VALUES_METHODDEF \ {"values", (PyCFunction)_contextvars_Context_values, METH_NOARGS, _contextvars_Context_values__doc__}, @@ -256,4 +256,4 @@ token_exit(PyObject *self, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=3a04b2fddf24c3e9 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=a6b96499985059cd input=a9049054013a1b77]*/