From 6f6a4e6cc5cd76af4a53ffbb62b686142646ac9a Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 11 Aug 2022 15:25:49 -0600 Subject: gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code (gh-95860) We only statically initialize for core code and builtin modules. Extension modules still create the tuple at runtime. We'll solve that part of interpreter isolation separately. This change includes generated code. The non-generated changes are in: * Tools/clinic/clinic.py * Python/getargs.c * Include/cpython/modsupport.h * Makefile.pre.in (re-generate global strings after running clinic) * very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c All other changes are generated code (clinic, global strings). --- Include/cpython/modsupport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/cpython') diff --git a/Include/cpython/modsupport.h b/Include/cpython/modsupport.h index 591dcb1329..d8458923b3 100644 --- a/Include/cpython/modsupport.h +++ b/Include/cpython/modsupport.h @@ -51,6 +51,7 @@ PyAPI_FUNC(PyObject **) _Py_VaBuildStack( Py_ssize_t *p_nargs); typedef struct _PyArg_Parser { + int initialized; const char *format; const char * const *keywords; const char *fname; -- cgit v1.2.1