Skip to content

Commit

Permalink
gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generate…
Browse files Browse the repository at this point in the history
…d 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).
  • Loading branch information
ericsnowcurrently authored Aug 11, 2022
1 parent bdb2cf8 commit 6f6a4e6
Show file tree
Hide file tree
Showing 127 changed files with 16,411 additions and 790 deletions.
1 change: 1 addition & 0 deletions Include/cpython/modsupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 6f6a4e6

Please sign in to comment.